- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for teststring1 (0.12 sec)
-
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testSkipFully() throws IOException { String testString = "abcdef"; Reader reader = new StringReader(testString); assertEquals(testString.charAt(0), reader.read()); CharStreams.skipFully(reader, 1); assertEquals(testString.charAt(2), reader.read()); CharStreams.skipFully(reader, 2); assertEquals(testString.charAt(5), reader.read()); assertEquals(-1, reader.read()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
} public void testSkipFully() throws IOException { String testString = "abcdef"; Reader reader = new StringReader(testString); assertEquals(testString.charAt(0), reader.read()); CharStreams.skipFully(reader, 1); assertEquals(testString.charAt(2), reader.read()); CharStreams.skipFully(reader, 2); assertEquals(testString.charAt(5), reader.read()); assertEquals(-1, reader.read()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
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) -
android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
} public void testChar() { TestHasher hasher = new TestHasher(); hasher.putChar((char) 0x0201); hasher.assertBytes(new byte[] {1, 2}); } public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
} public void testChar() { TestHasher hasher = new TestHasher(); hasher.putChar((char) 0x0201); hasher.assertBytes(new byte[] {1, 2}); } public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 3.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java
map.remove("data1"); assertFalse(docBoostMatcher.match(map)); map.put("data2", 5); assertFalse(docBoostMatcher.match(map)); } public void test_string() { final DocBoostMatcher docBoostMatcher = new DocBoostMatcher(); docBoostMatcher.setBoostExpression("10"); docBoostMatcher.setMatchExpression("data1 != null && data1.matches(\"test\")");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Sink sink = new Sink(4); sink.putChar((char) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros } public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
static TestSuite tests(String name, CharSourceFactory factory, boolean testAsByteSource) { TestSuite suite = new TestSuite(name); for (Entry<String, String> entry : TEST_STRINGS.entrySet()) { if (testAsByteSource) { suite.addTest( suiteForBytes(factory, entry.getValue().getBytes(UTF_8), name, entry.getKey(), true)); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkTester.java
+ "enim, at feugiat leo magna nec libero. Mauris quis odio eget nisl rutrum cursus nec " + "eget augue. Sed nec arcu sem. In hac habitasse platea dictumst."; static final ImmutableMap<String, String> TEST_STRINGS = ImmutableMap.<String, String>builder() .put("empty", "") .put("1 char", "0") .put("1 word", "hello") .put("2 words", "hello world")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 27 18:57:08 UTC 2022 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSinkTester.java
static TestSuite tests(String name, ByteSinkFactory factory) { TestSuite suite = new TestSuite(name); for (Entry<String, String> entry : TEST_STRINGS.entrySet()) { String desc = entry.getKey(); TestSuite stringSuite = suiteForString(name, factory, entry.getValue(), desc); suite.addTest(stringSuite); } return suite; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4K bytes - Viewed (0)