- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 75 for test_toString (0.26 sec)
-
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
// The radix is used as an array index, so try a negative value. assertThrows(NumberFormatException.class, () -> UnsignedBytes.parseUnsignedByte("0", -1)); } public void testToString() { // We can easily afford to test this exhaustively. for (int i = 0; i <= 0xff; i++) { assertThat(UnsignedBytes.toString((byte) i)).isEqualTo(Integer.toString(i)); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 13.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
assertThrows( IllegalArgumentException.class, () -> Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class)); } public void testToString() { assertEquals(int[].class.getName(), Types.toString(int[].class)); assertEquals(int[][].class.getName(), Types.toString(int[][].class)); assertEquals(String[].class.getName(), Types.toString(String[].class));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:41:27 UTC 2024 - 15.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypesTest.java
assertThrows( IllegalArgumentException.class, () -> Types.newParameterizedType(Map.class, String.class, Integer.class, Long.class)); } public void testToString() { assertEquals(int[].class.getName(), Types.toString(int[].class)); assertEquals(int[][].class.getName(), Types.toString(int[][].class)); assertEquals(String[].class.getName(), Types.toString(String[].class));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:41:27 UTC 2024 - 15.2K bytes - Viewed (0) -
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) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
assertThat(length - baseStackDepth).isLessThan(DIRECT_EXECUTIONS_PER_THREAD / 2); } } @SuppressWarnings("ObjectToString") // Intended behavior public void testToString() { Future<?> unused = serializer.submitAsync(firstCallable, directExecutor()); TestCallable secondCallable = new TestCallable(SettableFuture.<Void>create());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
.testEquals(); } public void testSerializable() { SerializableTester.reserializeAndAssert(MANY_VALUES_PAIRED_STATS); } public void testToString() { assertThat(EMPTY_PAIRED_STATS.toString()) .isEqualTo("PairedStats{xStats=Stats{count=0}, yStats=Stats{count=0}}"); assertThat(MANY_VALUES_PAIRED_STATS.toString()) .isEqualTo(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 14K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
ExecutionException expected = assertThrows(ExecutionException.class, () -> first.get(10, SECONDS)); assertThat(expected).hasCauseThat().isInstanceOf(RejectedExecutionException.class); } public void testToString() { final Runnable[] currentTask = new Runnable[1]; final Executor delegate = new Executor() { @Override public void execute(Runnable task) { currentTask[0] = task;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
map.put("3", "test3"); assertThat(map.equals(copy), is(not(true))); } /** * @throws Exception */ @Test public void testToString() throws Exception { assertThat(map.toString(), is(notNullValue())); } /** * @throws Exception */ @Test public void testClear() throws Exception {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
} private static byte[] byteArrayWith9s(int size) { byte[] bytez = new byte[size]; Arrays.fill(bytez, (byte) 0x99); return bytez; } public void testToString() { byte[] data = new byte[] {127, -128, 5, -1, 14}; assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString()); assertEquals("7f8005ff0e", base16().lowerCase().encode(data)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
assertEquals(a.length(), b.length()); for (int i = 0; i < VALUES.length; i++) { assertBitEquals(a.get(i), b.get(i)); } } /** toString returns current value */ public void testToString() { AtomicDoubleArray aa = new AtomicDoubleArray(VALUES); assertEquals(Arrays.toString(VALUES), aa.toString()); assertEquals("[]", new AtomicDoubleArray(0).toString());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 14.6K bytes - Viewed (0)