Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for expr (0.17 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<String> y = set("3", "4");
    
        List<Object> exp1 = list((Object) 1, "3");
        List<Object> exp2 = list((Object) 1, "4");
        List<Object> exp3 = list((Object) 2, "3");
        List<Object> exp4 = list((Object) 2, "4");
    
        assertThat(Sets.<Object>cartesianProduct(x, y))
            .containsExactly(exp1, exp2, exp3, exp4)
            .inOrder();
      }
    
      public void testCartesianProductTooBig() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ListsTest.java

        List<String> y = list("3", "4");
    
        List<Object> exp1 = list((Object) 1, "3");
        List<Object> exp2 = list((Object) 1, "4");
        List<Object> exp3 = list((Object) 2, "3");
        List<Object> exp4 = list((Object) 2, "4");
    
        assertThat(Lists.<Object>cartesianProduct(x, y))
            .containsExactly(exp1, exp2, exp3, exp4)
            .inOrder();
      }
    
      public void testCartesianProductTooBig() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/DoubleMathTest.java

        for (int exp : asList(-1022, -50, -1, 0, 1, 2, 3, 4, 100, 1022, 1023)) {
          for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) {
            double x = Math.scalb(Math.sqrt(2) + 0.001, exp);
            double y = Math.scalb(Math.sqrt(2) - 0.001, exp);
            if (exp < 0) {
              assertEquals(exp + 1, DoubleMath.log2(x, mode));
              assertEquals(exp, DoubleMath.log2(y, mode));
            } else {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ListsTest.java

        List<String> y = list("3", "4");
    
        List<Object> exp1 = list((Object) 1, "3");
        List<Object> exp2 = list((Object) 1, "4");
        List<Object> exp3 = list((Object) 2, "3");
        List<Object> exp4 = list((Object) 2, "4");
    
        assertThat(Lists.<Object>cartesianProduct(x, y))
            .containsExactly(exp1, exp2, exp3, exp4)
            .inOrder();
      }
    
      public void testCartesianProductTooBig() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

      static int randomExponent() {
        return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1);
      }
    
      static double randomPositiveDouble() {
        return Math.exp(randomDouble(6));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        List<?> exp = copyToList(expected);
        List<?> act = copyToList(actual);
        String actString = act.toString();
    
        // Of course we could take pains to give the complete description of the
        // problem on any failure.
    
        // Yeah it's n^2.
        for (Object object : exp) {
          if (!act.remove(object)) {
            Assert.fail(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        for (int exp : asList(-1022, -50, -1, 0, 1, 2, 3, 4, 100, 1022, 1023)) {
          for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) {
            double x = Math.scalb(Math.sqrt(2) + 0.001, exp);
            double y = Math.scalb(Math.sqrt(2) - 0.001, exp);
            if (exp < 0) {
              assertEquals(exp + 1, DoubleMath.log2(x, mode));
              assertEquals(exp, DoubleMath.log2(y, mode));
            } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/LongMathTest.java

            assertFalse(isPerfectSquare);
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testPow() {
        for (long i : ALL_LONG_CANDIDATES) {
          for (int exp : EXPONENTS) {
            assertEquals(LongMath.pow(i, exp), valueOf(i).pow(exp).longValue());
          }
        }
      }
    
      @J2ktIncompatible // J2kt BigDecimal.divide also has the rounding bug
      @GwtIncompatible // TODO
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<String> y = set("3", "4");
    
        List<Object> exp1 = list((Object) 1, "3");
        List<Object> exp2 = list((Object) 1, "4");
        List<Object> exp3 = list((Object) 2, "3");
        List<Object> exp4 = list((Object) 2, "4");
    
        assertThat(Sets.<Object>cartesianProduct(x, y))
            .containsExactly(exp1, exp2, exp3, exp4)
            .inOrder();
      }
    
      public void testCartesianProductTooBig() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  10. guava-tests/test/com/google/common/math/LongMathTest.java

            assertFalse(isPerfectSquare);
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testPow() {
        for (long i : ALL_LONG_CANDIDATES) {
          for (int exp : EXPONENTS) {
            assertEquals(LongMath.pow(i, exp), valueOf(i).pow(exp).longValue());
          }
        }
      }
    
      @J2ktIncompatible // J2kt BigDecimal.divide also has the rounding bug
      @GwtIncompatible // TODO
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top