- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for isAtMost (0.05 sec)
-
android/guava-tests/test/com/google/common/collect/SetViewTest.java
* Set#size()} of at most {@code max}. */ private static void assertMaxSize(SetView<?> set, int max) { assertThat(set.maxSize()).isEqualTo(max); assertThat(set.size()).isAtMost(max); } /** * A {@link Set} that throws {@link NullPointerException} and {@link ClassCastException} from * {@link #contains}. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testConstantsMaxFactorial() { BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL)).isAtMost(maxDoubleValue); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1)) .isGreaterThan(maxDoubleValue); } public void testConstantsEverySixteenthFactorial() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 14:15:36 UTC 2025 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
limiter.setRate(rate); long burst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random()); // we allow one second worth of work to go in a burst (i.e. take less than a second) assertThat(burst).isAtMost(1000); long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random()); // but work beyond that must take at least one second assertThat(afterBurst).isAtLeast(1000); } }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
limiter.setRate(rate); long burst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random()); // we allow one second worth of work to go in a burst (i.e. take less than a second) assertThat(burst).isAtMost(1000); long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random()); // but work beyond that must take at least one second assertThat(afterBurst).isAtLeast(1000); } }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
*/ private static void assertApproximateElementCountGuess(BloomFilter<?> bf, int sizeGuess) { assertThat(bf.approximateElementCount()).isAtLeast((long) (sizeGuess * 0.99)); assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01)); } public void testCreateAndCheckMitz32BloomFilterWithKnownFalsePositives() { int numInsertions = 1000000; BloomFilter<String> bf = BloomFilter.create(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 22.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testConstantsMaxFactorial() { BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL)).isAtMost(maxDoubleValue); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1)) .isGreaterThan(maxDoubleValue); } public void testConstantsEverySixteenthFactorial() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 14:15:36 UTC 2025 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
builder.add(i); } for (int j = 0; j < 1000; j++) { builder.add(9); } ImmutableSortedSet<Integer> unused = builder.build(); assertThat(compares[0]).isAtMost(10000); // hopefully something quadratic would have more digits }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertEquals(liveCount, countLiveEntries(map)); // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies assertThat(segment.count).isAtLeast(liveCount); assertThat(segment.count).isAtMost(originalCount); assertEquals(originalMap, ImmutableMap.copyOf(map)); } } private static <K, V> int countLiveEntries(MapMakerInternalMap<K, V, ?, ?> map) { int result = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
assertEquals(liveCount, countLiveEntries(map)); // expansion cleanup is sloppy, with a goal of avoiding unnecessary copies assertThat(segment.count).isAtLeast(liveCount); assertThat(segment.count).isAtMost(originalCount); assertEquals(originalMap, ImmutableMap.copyOf(map)); } } private static <K, V> int countLiveEntries(MapMakerInternalMap<K, V, ?, ?> map) { int result = 0;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
builder.add(i); } for (int j = 0; j < 1000; j++) { builder.add(9); } ImmutableSortedSet<Integer> unused = builder.build(); assertThat(compares[0]).isAtMost(10000); // hopefully something quadratic would have more digits }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0)