- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 275 for isEqualTo (0.05 sec)
-
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertEquals(Float.valueOf(0), ArbitraryInstances.get(Float.class)); assertThat(ArbitraryInstances.get(double.class)).isEqualTo(Double.valueOf(0)); assertThat(ArbitraryInstances.get(Double.class)).isEqualTo(Double.valueOf(0)); assertEquals(UnsignedInteger.ZERO, ArbitraryInstances.get(UnsignedInteger.class)); assertEquals(UnsignedLong.ZERO, ArbitraryInstances.get(UnsignedLong.class));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
} public void testConstantsEverySixteenthFactorial() { for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) { assertThat(DoubleMath.everySixteenthFactorial[i]) .isEqualTo(BigIntegerMath.factorial(n).doubleValue()); } } @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode) public void testRoundIntegralDoubleToInt() { for (double d : INTEGRAL_DOUBLE_CANDIDATES) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator)); assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>"); } public void testGetOnlyElement_noDefault_fiveElements() { Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
for (RoundingMode roundingMode : EnumSet.complementOf(EnumSet.of(UNNECESSARY))) { for (long candidate : roundToDoubleTestCandidates) { assertThat(LongMath.roundToDouble(candidate, roundingMode)) .isEqualTo(BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), roundingMode)); } } } @GwtIncompatible public void testRoundToDoubleAgainstBigIntegerUnnecessary() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 30.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
* executing listeners, as detected by yielding control to afterExecute. */ completed.await(); assertTrue(future.isDone()); assertThat(future.get()).isEqualTo(42); assertListenerRunImmediately(future); assertEquals(0, delegate.getQueue().size()); } public void testListeningDecorator_scheduleFailure() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
assertMapEquals(map, 1, "one", 2, "two", 70, "seventy"); } public void testBuildKeepingLast_smallTableSameHash() { String key1 = "QED"; String key2 = "R&D"; assertThat(key1.hashCode()).isEqualTo(key2.hashCode()); ImmutableMap<String, Integer> map = ImmutableMap.<String, Integer>builder() .put(key1, 1) .put(key2, 2) .put(key1, 3) .put(key2, 4)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
assertThat(elements).contains(element); if (random.nextBoolean()) { elements.remove(element); queueIterator.remove(); } } assertThat(remaining).isEqualTo(0); assertIntact(queue); assertThat(queue).containsExactlyElementsIn(elements); } } private enum Element { ONE, TWO, THREE, FOUR, FIVE; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
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/reflect/TypeTokenTest.java
ParameterizedType parameterizedType = (ParameterizedType) TypeToken.toGenericType(GenericClass.class).getType(); assertThat(parameterizedType.getOwnerType()).isEqualTo(javacReturnType.getOwnerType()); } public static <T> GenericClass<T> getStaticAnonymousClass(final T value) { return new GenericClass<T>() { @SuppressWarnings("unused")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
* executing listeners, as detected by yielding control to afterExecute. */ completed.await(); assertTrue(future.isDone()); assertThat(future.get()).isEqualTo(42); assertListenerRunImmediately(future); assertEquals(0, delegate.getQueue().size()); } public void testListeningDecorator_scheduleFailure() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0)