- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 785 for EXPECTED (0.21 seconds)
-
guava-tests/test/com/google/common/math/IntMathTest.java
return Integer.MIN_VALUE; } return big.intValue(); } private void assertOperationEquals(int a, int b, String op, int expected, int actual) { if (expected != actual) { fail("Expected for " + a + " " + op + " " + b + " = " + expected + ", but got " + actual); } } // Depends on the correctness of BigIntegerMath.factorial. public void testFactorial() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java
}); Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false); assertMapsEqual(expected, map); assertEquals(expected.get("a"), map.get("a")); assertEquals(expected.containsKey("a"), map.containsKey("a")); assertEquals(expected.get("b"), map.get("b")); assertEquals(expected.containsKey("b"), map.containsKey("b")); assertEquals(expected.get("c"), map.get("c"));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 9.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
hasher.putInt(intToPut); } for (Sink sink : sinks) { HashCode unused = sink.hash(); } byte[] expected = controlSink.hash().asBytes(); for (Sink sink : sinks) { sink.assertInvariants(expected.length); sink.assertBytes(expected); } } } private static class Sink extends AbstractStreamingHasher { final int chunkSize;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
ByteSource b3 = ByteSource.wrap(new byte[] {4, 5}); byte[] expected = {0, 1, 2, 3, 4, 5}; assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read()); assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read()); assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3).iterator()).read()); assertEquals(expected.length, ByteSource.concat(b1, b2, b3).size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
fail("size mismatch: " + reportContext(expectedList)); } for (int i = 0; i < expectedList.size(); i++) { E expected = expectedList.get(i); E actual = getList().get(i); if (expected != actual && (expected == null || !expected.equals(actual))) { fail("mismatch at index " + i + ": " + reportContext(expectedList)); } } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
} public void testCallWithTimeout_badCallableWithEnoughTime() throws Exception { ExecutionException expected = assertThrows( ExecutionException.class, () -> service.callWithTimeout(BAD_CALLABLE, ENOUGH_MS, MILLISECONDS)); assertThat(expected).hasCauseThat().isInstanceOf(SampleException.class); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
public void testFromInt() { for (ExpectedHashCode expected : expectedHashCodes) { if (expected.bytes.length == 4) { HashCode fromInt = HashCode.fromInt(expected.asInt); assertExpectedHashCode(expected, fromInt); } } } // expectedHashCodes must contain at least one hash code with 8 bytes public void testFromLong() { for (ExpectedHashCode expected : expectedHashCodes) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
expected[118] = 786432; expected[119] = 1048576; expected[120] = 458752; expected[121] = 524288; expected[122] = 65536; // Anything not assigned was the default 0. return expected; } /** * Helper to run the loop to test all the permutations for the number of bytes specified. * * @param numBytes the number of bytes in the byte arrayCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 12.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
} @J2ktIncompatible @GwtIncompatible // propagate public void testPropagate_noneDeclared_checked() { RuntimeException expected = assertThrows(RuntimeException.class, () -> propagate(new SomeCheckedException())); assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class); } @GwtIncompatible // throwIfInstanceOf
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
CharSource c3 = CharSource.wrap("de"); String expected = "abcde"; assertThat(CharSource.concat(ImmutableList.of(c1, c2, c3)).read()).isEqualTo(expected); assertThat(CharSource.concat(c1, c2, c3).read()).isEqualTo(expected); assertThat(CharSource.concat(ImmutableList.of(c1, c2, c3).iterator()).read()) .isEqualTo(expected); assertFalse(CharSource.concat(c1, c2, c3).isEmpty());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0)