- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 254 for teststring (0.09 seconds)
-
guava-tests/test/com/google/common/net/HostAndPortTest.java
// Non-bracketed IPv6 fails. assertThrows( IllegalArgumentException.class, () -> HostAndPort.fromString("::1").requireBracketsForIPv6()); } public void testToString() { // With ports. assertThat(HostAndPort.fromString("foo:101").toString()).isEqualTo("foo:101"); assertThat(HostAndPort.fromString(":102").toString()).isEqualTo(":102");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertEquals(0, emptyUnicodeStringFalse.buffer.length, "Buffer length should be 0 for empty string without zterm"); } @Test void testToString() { // Test toString with zterm = true String originalStringTrue = "HelloWorld"; UnicodeString unicodeStringTrue = new UnicodeString(originalStringTrue, true);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (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")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
assertEquals(1, task.get().intValue()); assertEquals(1, counter.get()); } executor.shutdown(); } @J2ktIncompatible @GwtIncompatible // blocking wait public void testToString() throws Exception { CountDownLatch enterLatch = new CountDownLatch(1); CountDownLatch exitLatch = new CountDownLatch(1); TrustedListenableFutureTask<@Nullable Void> task =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
assertEquals(0, result, "readBytesWireFormat should always return 0"); } /** * Test toString contains relevant information */ @Test public void testToString() { SmbComWrite write = new SmbComWrite(); write.setParam(0x1234, 100L, 50, new byte[10], 0, 10); String str = write.toString(); assertNotNull(str);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
assertThrows(IllegalStateException.class, hasher::hash); } @SuppressWarnings("deprecation") // We still need to test our deprecated APIs. public void testToString() { assertThat(md5().toString()).isEqualTo("Hashing.md5()"); assertThat(sha1().toString()).isEqualTo("Hashing.sha1()"); assertThat(sha256().toString()).isEqualTo("Hashing.sha256()");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
assertEquals(8, bytesRead); assertArrayEquals(encryptionKey, serverData.encryptionKey); assertEquals("", serverData.oemDomainName); } @Test void testToString() { // Populate serverData with some values response.dialectIndex = 5; serverData.securityMode = 0x03; // User, Encrypted serverData.security = 1;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
public void testEquals() { boolean unused = create().equals(new HashMap<String, Integer>()); } public void testHashCode() { int unused = create().hashCode(); } public void testToString() { String unused = create().toString(); } public void testSerialization() { SerializableTester.reserializeAndAssert(create()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} public void testCreateEmptyWithoutClassFails() { assertThrows( IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of())); } public void testToString() { Multiset<Color> ms = EnumMultiset.create(Color.class); ms.add(Color.BLUE, 3); ms.add(Color.YELLOW, 1); ms.add(Color.RED, 2); assertThat(ms.toString()).isEqualTo("[BLUE x 3, RED x 2, YELLOW]");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.1K bytes - Click Count (0) -
utils/utils_test.go
if out := AssertEqual(test.src, test.dst); test.out != out { t.Errorf("AssertEqual(%v, %v) want: %t, got: %t", test.src, test.dst, test.out, out) } }) } } func TestToString(t *testing.T) { tests := []struct { name string in interface{} out string }{ {"int", math.MaxInt64, "9223372036854775807"}, {"int8", int8(math.MaxInt8), "127"},
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:31:30 GMT 2026 - 5.5K bytes - Click Count (0)