Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for teststring1 (0.11 sec)

  1. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class DocumentUtilTest extends UnitFessTestCase {
    
        public void test_string() {
            Map<String, Object> doc = new HashMap<>();
    
            String expected = "1";
            doc.put("key1", expected);
            assertEquals(expected, DocumentUtil.getValue(doc, "key1", String.class));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        String string = noWorkToDo ? charSequenceToUpperCase(testString) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += charSequenceToUpperCase(string).length();
        }
        return dummy;
      }
    
      @Benchmark
      int stringToUpperCase(int reps) {
        String string = noWorkToDo ? testString.toUpperCase(Locale.US) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
      public int countIn(int reps) {
        int result = 0;
        CharMatcher matcher = this.matcher;
        String teststring = this.teststring;
        for (int i = 0; i < reps; i++) {
          result += matcher.countIn(teststring);
        }
        return result;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        matcher = useNew ? CharMatcher.whitespace() : OLD_WHITESPACE;
        teststring = newTestString(new Random(1), bitSet, percentMatching);
      }
    
      @Benchmark
      public int countIn(int reps) {
        int result = 0;
        CharMatcher matcher = this.matcher;
        String teststring = this.teststring;
        for (int i = 0; i < reps; i++) {
          result += matcher.countIn(teststring);
        }
        return result;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        String string = noWorkToDo ? charSequenceToUpperCase(testString) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += charSequenceToUpperCase(string).length();
        }
        return dummy;
      }
    
      @Benchmark
      int stringToUpperCase(int reps) {
        String string = noWorkToDo ? testString.toUpperCase(Locale.US) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/MultiReaderTest.java

        assertFalse(joinedReader.ready());
      }
    
      public void testSimple() throws Exception {
        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        Reader joinedReader = CharSource.concat(source, source).openStream();
    
        String expectedString = testString + testString;
        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/MultiReaderTest.java

        assertFalse(joinedReader.ready());
      }
    
      public void testSimple() throws Exception {
        String testString = "abcdefgh";
        CharSource source = newCharSource(testString);
        Reader joinedReader = CharSource.concat(source, source).openStream();
    
        String expectedString = testString + testString;
        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

                  ? null
                  : ("[" + String.valueOf(cp) + "]").toCharArray();
            }
          };
    
      public void testNopEscaper() {
        UnicodeEscaper e = NOP_ESCAPER;
        assertEquals(TEST_STRING, escapeAsString(e, TEST_STRING));
      }
    
      public void testSimpleEscaper() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        String expected =
            "[0]abyz[128][256][2048][4096]ABYZ[65535]"
                + "["
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

                  ? null
                  : ("[" + String.valueOf(cp) + "]").toCharArray();
            }
          };
    
      public void testNopEscaper() {
        UnicodeEscaper e = NOP_ESCAPER;
        assertEquals(TEST_STRING, escapeAsString(e, TEST_STRING));
      }
    
      public void testSimpleEscaper() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        String expected =
            "[0]abyz[128][256][2048][4096]ABYZ[65535]"
                + "["
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/bytes/reader_test.go

    			defer wg.Done()
    			r.Read(nil)
    		}()
    	}
    	wg.Wait()
    }
    
    func TestReaderWriteTo(t *testing.T) {
    	for i := 0; i < 30; i += 3 {
    		var l int
    		if i > 0 {
    			l = len(testString) / i
    		}
    		s := testString[:l]
    		r := NewReader(testBytes[:l])
    		var b Buffer
    		n, err := r.WriteTo(&b)
    		if expect := int64(len(s)); n != expect {
    			t.Errorf("got %v; want %v", n, expect)
    		}
    		if err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
Back to top