Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for nextLong (0.45 sec)

  1. guava-tests/test/com/google/common/hash/HashingTest.java

                params1[i] = random.nextInt();
                params2[i] = random.nextInt();
              } else if (method.getParameterTypes()[i] == long.class) {
                params1[i] = random.nextLong();
                params2[i] = random.nextLong();
              } else {
                fail("Unable to create a random parameter for " + method.getParameterTypes()[i]);
              }
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingTest.java

                params1[i] = random.nextInt();
                params2[i] = random.nextInt();
              } else if (method.getParameterTypes()[i] == long.class) {
                params1[i] = random.nextLong();
                params2[i] = random.nextLong();
              } else {
                fail("Unable to create a random parameter for " + method.getParameterTypes()[i]);
              }
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      public void testDivideRemainderEuclideanProperty() {
        // Use a seed so that the test is deterministic:
        Random r = new Random(0L);
        for (int i = 0; i < 1000000; i++) {
          long dividend = r.nextLong();
          long divisor = r.nextLong();
          // Test that the Euclidean property is preserved:
          assertThat(
                  dividend
                      - (divisor * UnsignedLongs.divide(dividend, divisor)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      public void testDivideRemainderEuclideanProperty() {
        // Use a seed so that the test is deterministic:
        Random r = new Random(0L);
        for (int i = 0; i < 1000000; i++) {
          long dividend = r.nextLong();
          long divisor = r.nextLong();
          // Test that the Euclidean property is preserved:
          assertThat(
                  dividend
                      - (divisor * UnsignedLongs.divide(dividend, divisor)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ReadWriteTest.java

    
        public ReadWriteTest ( String name, Map<String, String> properties ) {
            super(name, properties);
        }
    
        private static final long SEED = ( new Random() ).nextLong();
    
    
        @Override
        @Before
        public void setUp () throws Exception {
            super.setUp();
        }
    
    
        static Random getRandom () {
            return new Random(SEED);
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorTesterLarger() throws Exception {
        runIterator(Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 5);
      }
    
      public void testRemoveAt() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        int heapSize = 999;
        int numberOfModifications = reduceIterationsIfGwt(500);
        MinMaxPriorityQueue<Integer> mmHeap =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorTesterLarger() throws Exception {
        runIterator(Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 5);
      }
    
      public void testRemoveAt() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        int heapSize = 999;
        int numberOfModifications = reduceIterationsIfGwt(500);
        MinMaxPriorityQueue<Integer> mmHeap =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

              sink.putInt(value);
            }
          }
        },
        PUT_LONG() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            long value = random.nextLong();
            for (PrimitiveSink sink : sinks) {
              sink.putLong(value);
            }
          }
        },
        PUT_FLOAT() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

              sink.putInt(value);
            }
          }
        },
        PUT_LONG() {
          @Override
          void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) {
            long value = random.nextLong();
            for (PrimitiveSink sink : sinks) {
              sink.putLong(value);
            }
          }
        },
        PUT_FLOAT() {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/LongMathTest.java

        Random rand = new Random(1);
        for (int bits = 10; bits < 63; bits++) {
          for (int i = 0; i < 2000; i++) {
            // A random long between 0 and Long.MAX_VALUE, inclusive.
            long l = rand.nextLong() & ((1L << bits) - 1);
            assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l));
          }
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
    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)
Back to top