Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Biggers (0.21 sec)

  1. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

      }
    
      // A random value that cannot be 0 and that is unsigned-less-than or equal
      // to the given dividend, so that we don't have half of our divisions being
      // trivial because the divisor is bigger than the dividend.
      // Using remainder here does not give us a uniform distribution but it should
      // not have a big impact on the measurement.
      private static long randomDivisor(long dividend) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertEquals(
            "Modifying the builder should not have changed any already" + " built sets",
            216,
            webSafeColors.size());
        assertEquals("the new array should be one bigger than webSafeColors", 217, addedColor.size());
        Integer[] appendColorArray = addedColor.toArray(new Integer[addedColor.size()]);
        assertEquals(0x00BFFF, (int) appendColorArray[216]);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

                  || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k)));
          // In the first case, any long is valid; in the second, we want to test that the next-bigger
          // long overflows.
        }
        int k = LongMath.biggestBinomials.length;
        assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k)));
        // 2 * k is the smallest value for which we don't replace k with (n-k).
    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)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public <T> void testVariableTypeTokenNotAllowed() {
        /*
         * We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
         * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's
         * reflection implementation.
         */
        try {
          new TypeToken<T>() {};
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

          waitingThread.interrupt();
        }
    
        future.set(RESULT);
    
        assertEquals(times > 0, (boolean) interruptReporter.get(20, SECONDS));
      }
    
      /**
       * Confirms that the test code triggers {@link InterruptedException} in a standard {@link Future}.
       */
      public void testMakeUninterruptible_plainFutureSanityCheck() throws Exception {
        SettableFuture<String> future = SettableFuture.create();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * and {@link java.util.concurrent.CompletableFuture#handleAsync} when used along with {@link
       * #transform}.
       *
       * @param exceptionType the exception type that triggers use of {@code fallback}. The exception
       *     type is matched against the input's exception. "The input's exception" means the cause of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        setDelays();
      }
    
      /**
       * Extra checks that get done for all test cases.
       *
       * <p>Triggers test case failure if any thread assertions have failed, by rethrowing, in the test
       * harness thread, any exception recorded earlier by threadRecordFailure.
       *
       * <p>Triggers test case failure if interrupt status is set in the main thread.
       */
      @Override
      public void tearDown() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        verifyTableSize(60, 60, 128);
        verifyTableSize(120, 60, 256);
        // if the table is only double the necessary size, we don't bother resizing it
        verifyTableSize(180, 60, 128);
        // but if it's even bigger than double, we rebuild the table
        verifyTableSize(17, 17, 32);
        verifyTableSize(17, 16, 32);
        verifyTableSize(17, 15, 32);
      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

          assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
        assertEquals(3327428144502L, BloomFilter.optimalNumOfBits(Integer.MAX_VALUE, Double.MIN_VALUE));
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(
            "Modifying the builder should not have changed any already built sets",
            216,
            webSafeColors.size());
        assertEquals("the new array should be one bigger than webSafeColors", 217, addedColor.size());
        Integer[] appendColorArray = addedColor.toArray(new Integer[addedColor.size()]);
        assertEquals(getComplexBuilderSetLastElement(), (int) appendColorArray[216]);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top