Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 527 for allowed (0.19 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        }
      }
    
      public void testInitialCapacity_setTwice() {
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().initialCapacity(16);
        try {
          // even to the same value is not allowed
          builder.initialCapacity(16);
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      @GwtIncompatible // CacheTesting
      public void testInitialCapacity_small() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsTesting.java

          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
          assertThat(actualStats.populationVariance()).isWithin(0.0).of(0.0);
          assertThat(actualStats.min()).isWithin(ALLOWED_ERROR).of(expectedStats.min());
          assertThat(actualStats.max()).isWithin(ALLOWED_ERROR).of(expectedStats.max());
        } else {
          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 23.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
        LinearTransformation transformation =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
        LinearTransformation transformation =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/QuantilesTest.java

       *   double-collection and with computeInPlace.
       */
    
      private static final double ALLOWED_ERROR = 1.0e-10;
    
      /**
       * A {@link Correspondence} which accepts finite values within {@link #ALLOWED_ERROR} of each
       * other.
       */
      private static final Correspondence<Number, Number> FINITE_QUANTILE_CORRESPONDENCE =
          Correspondence.tolerance(ALLOWED_ERROR);
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/QuantilesTest.java

       *   double-collection and with computeInPlace.
       */
    
      private static final double ALLOWED_ERROR = 1.0e-10;
    
      /**
       * A {@link Correspondence} which accepts finite values within {@link #ALLOWED_ERROR} of each
       * other.
       */
      private static final Correspondence<Number, Number> FINITE_QUANTILE_CORRESPONDENCE =
          Correspondence.tolerance(ALLOWED_ERROR);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

      public void testReplaceEntry_absentKeyNullValueUnsupported() {
        try {
          assertFalse(getMap().replace(k3(), v3(), null));
        } catch (NullPointerException tolerated) {
          // the operation would be a no-op, so exceptions are allowed but not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUE_QUERIES})
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multiset.java

         * for this entry is one, this is simply the string representation of the corresponding element.
         * Otherwise, it is the string representation of the element, followed by the three characters
         * {@code " x "} (space, letter x, space), followed by the count.
         */
        @Override
        String toString();
      }
    
      // Comparison and hashing
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/StatsTesting.java

          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
          assertThat(actualStats.populationVariance()).isWithin(0.0).of(0.0);
          assertThat(actualStats.min()).isWithin(ALLOWED_ERROR).of(expectedStats.min());
          assertThat(actualStats.max()).isWithin(ALLOWED_ERROR).of(expectedStats.max());
        } else {
          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
Back to top