Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for 100 (0.12 sec)

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

      }
    
      public void testCreateWithValidSizes() {
        Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20);
        table1.put("foo", 1, 'a');
        assertEquals((Character) 'a', table1.get("foo", 1));
    
        Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0);
        table2.put("foo", 1, 'a');
        assertEquals((Character) 'a', table2.get("foo", 1));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                        CompactHashSet<String> set = CompactHashSet.create(Arrays.asList(elements));
                        for (int i = 0; i < 100; i++) {
                          set.add("extra" + i);
                        }
                        for (int i = 0; i < 100; i++) {
                          set.remove("extra" + i);
                        }
                        set.trimToSize();
                        return set;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                        CompactHashSet<String> set = CompactHashSet.create(Arrays.asList(elements));
                        for (int i = 0; i < 100; i++) {
                          set.add("extra" + i);
                        }
                        for (int i = 0; i < 100; i++) {
                          set.remove("extra" + i);
                        }
                        set.trimToSize();
                        return set;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/HashBasedTableTest.java

      }
    
      public void testCreateWithValidSizes() {
        Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20);
        table1.put("foo", 1, 'a');
        assertEquals((Character) 'a', table1.get("foo", 1));
    
        Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0);
        table2.put("foo", 1, 'a');
        assertEquals((Character) 'a', table2.get("foo", 1));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        mmHeap.addAll(Lists.newArrayList(1, 20, 100, 2, 3, 30, 40));
        assertEquals(7, mmHeap.size());
        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        Iterator<Integer> it = mmHeap.iterator();
        assertEquals((Integer) 1, it.next());
        assertEquals((Integer) 20, it.next());
        assertEquals((Integer) 100, it.next());
        assertEquals((Integer) 2, it.next());
        it.remove();
    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)
  6. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

    @RunWith(JUnit4.class)
    
    public final class NetworkMutationTest {
      private static final int NUM_TRIALS = 5;
      private static final int NUM_NODES = 20;
      private static final int NUM_EDGES = 100;
      private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES
    
      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/LongMathTest.java

        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeManyConstants() {
        // Test the thorough test inputs, which also includes special constants in the Miller-Rabin
        // tests.
        for (long l : POSITIVE_LONG_CANDIDATES) {
          assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l));
        }
      }
    
    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)
  8. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

    @RunWith(JUnit4.class)
    
    public final class NetworkMutationTest {
      private static final int NUM_TRIALS = 5;
      private static final int NUM_NODES = 20;
      private static final int NUM_EDGES = 100;
      private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES
    
      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          String value = String.valueOf(i);
          builder.put(key, value);
          expected.put(key, value);
        }
        ImmutableMap<Integer, String> map = builder.buildKeepingLast();
        assertThat(map).hasSize(100_000);
        assertThat(map).containsExactlyEntriesIn(expected).inOrder();
      }
    
      private static class ClassWithTerribleHashCode implements Comparable<ClassWithTerribleHashCode> {
        private final int value;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * The number of milliseconds that tests are permitted for execution without being reported, when
       * profileTests is set.
       */
      private static final long profileThreshold = Long.getLong("jsr166.profileThreshold", 100);
    
      @Override
      protected void runTest() throws Throwable {
        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
    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)
Back to top