- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for TestCompare (0.05 sec)
-
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
assertWithMessage("%s not found in exception text: %s", value, ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } } public void testCompare() { for (byte x : VALUES) { for (byte y : VALUES) { // Only compare the sign of the result of compare(). int expected = Byte.compare(x, y); int actual = SignedBytes.compare(x, y);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
public void testModByZero() { for (long a : TEST_LONGS) { assertThrows( ArithmeticException.class, () -> UnsignedLong.fromLongBits(a).mod(UnsignedLong.ZERO)); } } public void testCompare() { for (long a : TEST_LONGS) { for (long b : TEST_LONGS) { UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
public void testModByZero() { for (long a : TEST_LONGS) { assertThrows( ArithmeticException.class, () -> UnsignedLong.fromLongBits(a).mod(UnsignedLong.ZERO)); } } public void testCompare() { for (long a : TEST_LONGS) { for (long b : TEST_LONGS) { UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a); UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
assertWithMessage("%s not found in exception text: %s", value, ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } } public void testCompare() { // This is the only ordering for primitives that does not have a // corresponding Comparable wrapper in java.lang. for (int i = 0; i < VALUES.length; i++) { for (int j = 0; j < VALUES.length; j++) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 13.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
.that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } } // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testCompare() { for (char x : VALUES) { for (char y : VALUES) { assertWithMessage("%s, %s", x, y) .that(Math.signum(Chars.compare(x, y))) .isEqualTo(Math.signum(Character.compare(x, y)));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 25.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.falseFirst().compare(true, false)).isGreaterThan(0); } // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testCompare() { for (boolean x : VALUES) { for (boolean y : VALUES) { // note: spec requires only that the sign is the same assertWithMessage("%s, %s", x, y) .that(Booleans.compare(x, y))
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 25.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
assertThat(Doubles.isFinite(value)).isEqualTo(Double.isFinite(value)); } } // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testCompare() { for (double x : VALUES) { for (double y : VALUES) { // note: spec requires only that the sign is the same assertWithMessage("%s, %s", x, y) .that(Doubles.compare(x, y))
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
.isTrue(); } } // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testCompare() { for (int x : VALUES) { for (int y : VALUES) { // note: spec requires only that the sign is the same assertWithMessage("%s, %s", x, y).that(Ints.compare(x, y)).isEqualTo(Integer.compare(x, y));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
.isTrue(); } } // We need to test that our method behaves like the JDK method. @SuppressWarnings("InlineMeInliner") public void testCompare() { for (short x : VALUES) { for (short y : VALUES) { // Only compare the sign of the result of compare(). int expected = Short.compare(x, y); int actual = Shorts.compare(x, y);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 27.5K bytes - Viewed (0)