Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for isGreaterThan (0.1 seconds)

  1. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          for (RoundingMode mode : asList(FLOOR, DOWN)) {
            BigInteger result = BigIntegerMath.sqrt(x, mode);
            assertThat(result).isGreaterThan(ZERO);
            assertThat(result.pow(2)).isAtMost(x);
            assertThat(result.add(ONE).pow(2)).isGreaterThan(x);
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testSqrtCeiling() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 27.1K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        Comparable<Object> comparable = ArbitraryInstances.get(Comparable.class);
        assertEquals(0, comparable.compareTo(comparable));
        assertThat(comparable.compareTo("")).isGreaterThan(0);
        assertThrows(NullPointerException.class, () -> comparable.compareTo(null));
      }
    
      public void testGet_array() {
        assertThat(ArbitraryInstances.get(int[].class)).isEmpty();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isCloseTo
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isGreaterThan
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import assertk.fail
    import java.net.CookieHandler
    import java.net.CookieManager
    import java.net.CookiePolicy
    import java.net.HttpCookie
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Mar 19 07:46:39 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        assertParseFails("-128");
        assertParseFails("256");
      }
    
      public void testMaxValue() {
        assertThat(UnsignedBytes.compare(UnsignedBytes.MAX_VALUE, (byte) (UnsignedBytes.MAX_VALUE + 1)))
            .isGreaterThan(0);
      }
    
      public void testParseUnsignedByteWithRadix() throws NumberFormatException {
        // We can easily afford to test this exhaustively.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/hash/BloomFilterTest.java

      public void testOptimalHashes() {
        for (int n = 1; n < 1000; n++) {
          for (double p = 0.1; p > 1e-10; p /= 10) {
            assertThat(BloomFilter.optimalNumOfHashFunctions(p)).isGreaterThan(0);
          }
        }
      }
    
      // https://github.com/google/guava/issues/1781
      public void testOptimalNumOfHashFunctionsRounding() {
        assertEquals(5, BloomFilter.optimalNumOfHashFunctions(0.03));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.trueFirst().compare(false, true)).isGreaterThan(0);
      }
    
      public void testFalseFirst() {
        assertThat(Booleans.falseFirst().compare(true, true)).isEqualTo(0);
        assertThat(Booleans.falseFirst().compare(false, false)).isEqualTo(0);
        assertThat(Booleans.falseFirst().compare(false, true)).isLessThan(0);
        assertThat(Booleans.falseFirst().compare(true, false)).isGreaterThan(0);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 25.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        assertParseFails("-128");
        assertParseFails("256");
      }
    
      public void testMaxValue() {
        assertThat(UnsignedBytes.compare(UnsignedBytes.MAX_VALUE, (byte) (UnsignedBytes.MAX_VALUE + 1)))
            .isGreaterThan(0);
      }
    
      public void testParseUnsignedByteWithRadix() throws NumberFormatException {
        // We can easily afford to test this exhaustively.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 14K bytes
    - Click Count (0)
  8. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        Comparable<Object> comparable = ArbitraryInstances.get(Comparable.class);
        assertEquals(0, comparable.compareTo(comparable));
        assertThat(comparable.compareTo("")).isGreaterThan(0);
        assertThrows(NullPointerException.class, () -> comparable.compareTo(null));
      }
    
      public void testGet_array() {
        assertThat(ArbitraryInstances.get(int[].class)).isEmpty();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          assertThat(segment.put(key, hash, value, false)).isNull();
          assertThat(segment.table.length()).isGreaterThan(i);
        }
      }
    
      public void testSegmentPut_evict() {
        int maxSize = 10;
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).maximumSize(maxSize));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          Object key = new Object();
          Object value = new Object();
          int hash = map.hash(key);
          assertThat(segment.put(key, hash, value, false)).isNull();
          assertThat(segment.table.length()).isGreaterThan(i);
        }
      }
    
      public void testSegmentPut_evict() {
        int maxSize = 10;
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).maximumSize(maxSize));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
Back to Top