- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 30 for test_hashCode (0.05 sec)
-
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
}; private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN}); // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (double value : VALUES) { assertThat(Doubles.hashCode(value)).isEqualTo(Double.hashCode(value)); } } @SuppressWarnings("InlineMeInliner") // We need to test our method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (int value : VALUES) { assertThat(Ints.hashCode(value)).isEqualTo(Integer.hashCode(value)); } } public void testCheckedCast() { for (int value : VALUES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
} } else { try { V unused = map.get(null); } catch (NullPointerException optional) { } } assertInvariants(map); } public void testHashCode() { Map<K, V> map; try { map = makePopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertInvariants(map); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
private static final boolean[] ARRAY_FALSE_TRUE = {false, true}; private static final boolean[] VALUES = {false, true}; @SuppressWarnings("InlineMeInliner") // We need to test our method. public void testHashCode() { assertThat(Booleans.hashCode(true)).isEqualTo(Boolean.TRUE.hashCode()); assertThat(Booleans.hashCode(false)).isEqualTo(Boolean.FALSE.hashCode()); } public void testTrueFirst() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
}; private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN}); // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (double value : VALUES) { assertThat(Doubles.hashCode(value)).isEqualTo(Double.hashCode(value)); } } @SuppressWarnings("InlineMeInliner") // We need to test our method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
private static final long[] VALUES = {MIN_VALUE, -1L, 0L, 1L, MAX_VALUE}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (long value : VALUES) { assertWithMessage("hashCode for " + value) .that(Longs.hashCode(value)) .isEqualTo(Long.hashCode(value)); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 28.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
private static final short[] VALUES = {LEAST, (short) -1, (short) 0, (short) 1, GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (short value : VALUES) { assertThat(Shorts.hashCode(value)).isEqualTo(Short.hashCode(value)); } } public void testCheckedCast() { for (short value : VALUES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
}; private static final float[] VALUES = Floats.concat(NUMBERS, new float[] {NaN}); // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (float value : VALUES) { assertThat(Floats.hashCode(value)).isEqualTo(Float.hashCode(value)); } } @SuppressWarnings("InlineMeInliner") // We need to test our method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST}; // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (int value : VALUES) { assertThat(Ints.hashCode(value)).isEqualTo(Integer.hashCode(value)); } } public void testCheckedCast() { for (int value : VALUES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
}; private static final float[] VALUES = Floats.concat(NUMBERS, new float[] {NaN}); // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testHashCode() { for (float value : VALUES) { assertThat(Floats.hashCode(value)).isEqualTo(Float.hashCode(value)); } } @SuppressWarnings("InlineMeInliner") // We need to test our method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.4K bytes - Viewed (0)