- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 105 for test_string (0.15 sec)
-
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 { final CountDownLatch enterLatch = new CountDownLatch(1); final CountDownLatch exitLatch = new CountDownLatch(1); final TrustedListenableFutureTask<@Nullable Void> task =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
sha1.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString()); assertThrows(IllegalStateException.class, () -> sha1.hash()); } public void testToString() { assertEquals("Hashing.md5()", Hashing.md5().toString()); assertEquals("Hashing.sha1()", Hashing.sha1().toString()); assertEquals("Hashing.sha256()", Hashing.sha256().toString());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 4.1K bytes - Viewed (0) -
android/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 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/StopwatchTest.java
ticker.advance(1); assertEquals(1, stopwatch.elapsed(MILLISECONDS)); } @J2ktIncompatible // TODO(b/259213718): Switch J2kt to String.format("%.4g") once that's supported public void testToString() { stopwatch.start(); assertEquals("0.000 ns", stopwatch.toString()); ticker.advance(1); assertEquals("1.000 ns", stopwatch.toString()); ticker.advance(998);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java
public void testBigDouble() throws Exception { assertEquals("12500000", BigDecimalConversionUtil.toBigDecimal(12500000D).toString()); } /** * @throws Exception */ public void testToString() throws Exception { final BigDecimal d = new BigDecimal(new BigInteger("125"), -1); assertEquals("1250", BigDecimalConversionUtil.toString(d)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/etag/etag_test.go
String: "20000f00db2d90a7b40782d4cff2b41a7799fc1e7ead25972db65150118dfbe2ba76a3c002da28f85c840cd2001a28a9", }, } func TestString(t *testing.T) { for i, test := range stringTests { s := test.ETag.String() if s != test.String { t.Fatalf("Test %d: got %s - want %s", i, s, test.String) } } } var equalTests = []struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 12.6K bytes - Viewed (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()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (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); assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.9K bytes - Viewed (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"},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java
assertTrue(getMultiset().elementSet().remove(e0())); assertEquals(0, entry.getCount()); getMultiset().add(e0(), 2); assertEquals(2, entry.getCount()); } public void testToString() { assertEquals(getMultiset().entrySet().toString(), getMultiset().toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9.5K bytes - Viewed (0)