Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 50 (0.12 sec)

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

        }
      }
    
      // Depends on the correctness of BigIntegerMath.factorial.
      @GwtIncompatible // TODO
      public void testFactorial() {
        for (int n = 0; n <= 50; n++) {
          BigInteger expectedBig = BigIntegerMath.factorial(n);
          long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE;
          assertEquals(expectedLong, LongMath.factorial(n));
        }
    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)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

      // actual public API.
      @J2ktIncompatible // Ordering.arbitrary
      public void testArbitrary_withoutCollisions() {
        List<Object> list = Lists.newArrayList();
        for (int i = 0; i < 50; i++) {
          list.add(new Object());
        }
    
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

      // actual public API.
      @J2ktIncompatible // Ordering.arbitrary
      public void testArbitrary_withoutCollisions() {
        List<Object> list = Lists.newArrayList();
        for (int i = 0; i < 50; i++) {
          list.add(new Object());
        }
    
        Ordering<Object> arbitrary = Ordering.arbitrary();
        Collections.sort(list, arbitrary);
    
        // Now we don't care what order it's put the list in, only that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

        }
      }
    
      // Depends on the correctness of BigIntegerMath.factorial.
      @GwtIncompatible // TODO
      public void testFactorial() {
        for (int n = 0; n <= 50; n++) {
          BigInteger expectedBig = BigIntegerMath.factorial(n);
          long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE;
          assertEquals(expectedLong, LongMath.factorial(n));
        }
    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)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

              uniques++;
            }
          }
          Arrays.fill(sortedElements, uniques, length, null);
          if (maybeExpand && uniques * 4 > length * 3) {
            // lots of nonduplicated elements, expand the array by 50%
            sortedElements =
                Arrays.copyOf(sortedElements, IntMath.saturatedAdd(length, length / 2 + 1));
          }
          int[] sortedCounts = new int[sortedElements.length];
          for (int i = 0; i < length; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top