Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for 20 (0.12 sec)

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

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        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));
    
        Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20);
        table3.put("foo", 1, 'a');
    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)
  3. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testSkipEOF() throws IOException {
        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
        // Test reading a single byte while we're in the right state
        assertEquals(-1, counter.read());
        assertEquals(20, counter.getCount());
      }
    
      public void testReadArrayEOF() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                            mapEntry(Range.atMost(-1), "fruitcake"),
                            mapEntry(Range.open(10, 15), "elephant"),
                            mapEntry(Range.closed(20, 22), "umbrella"));
                      }
    
                      @Override
                      public Map<Range<Integer>, String> create(Object... elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testColumnKeySet_isSorted() {
        table =
            create(
                "a", 2, 'X', "a", 2, 'X', "b", 3, 'X', "b", 2, 'X', "c", 10, 'X', "c", 10, 'X', "c", 20,
                'X', "d", 15, 'X', "d", 20, 'X', "d", 1, 'X', "e", 5, 'X');
        assertEquals("[1, 2, 3, 5, 10, 15, 20]", table.columnKeySet().toString());
      }
    
      public void testColumnKeySet_isSortedWithRealComparator() {
        table =
            create(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

      }
    
      // Tests from RFC2022: https://tools.ietf.org/html/rfc2202
    
      public void testRfc2202_hmacSha1_case1() {
        byte[] key = fillByteArray(20, 0x0b);
        String data = "Hi There";
    
        checkSha1("b617318655057264e28bc0b6fb378c8ef146be00", key, data);
      }
    
      public void testRfc2202_hmacSha1_case2() {
        byte[] key = "Jefe".getBytes(UTF_8);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.greaterThan(7)));
        assertEquals(empty, Sets.subSet(set, Range.greaterThan(20)));
    
        assertEquals(empty, Sets.subSet(set, Range.lessThan(0)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_maximumWeightRepeated() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumWeight=10, maximumWeight=20"));
      }
    
      public void testParse_maximumSizeAndMaximumWeight() {
        assertThrows(IllegalArgumentException.class, () -> parse("maximumSize=10, maximumWeight=20"));
      }
    
      public void testParse_concurrencyLevel() {
        CacheBuilderSpec spec = parse("concurrencyLevel=32");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromSizes() {
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          ArrayListMultimap.create(15, -2);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
Back to top