Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for 100 (0.35 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. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
      public void testResizeTable() {
        verifyTableSize(100, 2, 4);
        verifyTableSize(100, 5, 8);
        verifyTableSize(100, 33, 64);
        verifyTableSize(60, 60, 128);
        verifyTableSize(120, 60, 256);
        // if the table is only double the necessary size, we don't bother resizing it
    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)
  5. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10TrivialOnPowerOf10() {
        BigInteger x = BigInteger.TEN.pow(100);
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(100, BigIntegerMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
      public void testSqrtZeroAlwaysZero() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

        }
      }
    
      @GwtIncompatible // TODO
      public void testLog10TrivialOnPowerOf10() {
        BigInteger x = BigInteger.TEN.pow(100);
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(100, BigIntegerMath.log10(x, mode));
        }
      }
    
      @GwtIncompatible // TODO
      public void testSqrtZeroAlwaysZero() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  7. 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)
  8. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
      public void testResizeTable() {
        verifyTableSize(100, 2, 8);
        verifyTableSize(100, 5, 8);
        verifyTableSize(100, 33, 64);
        verifyTableSize(17, 17, 32);
        verifyTableSize(17, 16, 32);
        verifyTableSize(17, 15, 32);
      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  9. 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)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    @GwtIncompatible // threads
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
        final int getsPerTask = 1000;
        final int deltaRange = 10000;
        final String key = "key";
    
        final AtomicLongMap<String> map = AtomicLongMap.create();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top