Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 1,176 for asdict (0.17 sec)

  1. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.asList(ARRAY_FALSE).contains(true)).isFalse();
        assertThat(Booleans.asList(ARRAY_TRUE).contains(true)).isTrue();
        assertThat(Booleans.asList(ARRAY_FALSE_TRUE).contains(false)).isTrue();
        assertThat(Booleans.asList(ARRAY_FALSE_TRUE).contains(true)).isTrue();
      }
    
      public void testAsListEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<?> b;
    
        // A few elements.
        a = asList(4, 8, 15, 16, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertTrue(elementsEqual(a, b));
    
        // An element differs.
        a = asList(4, 8, 15, 12, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a, b));
    
        // null versus non-null.
        a = Arrays.<@Nullable Integer>asList(4, 8, 15, null, 23, 42);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

    import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.testing.IteratorTester;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        // need explicit type parameter to avoid javac warning!?
        List<Byte> none = Arrays.<Byte>asList();
        assertThat(Bytes.toArray(none)).isEqualTo(EMPTY);
    
        List<Byte> one = Arrays.asList((byte) 1);
        assertThat(Bytes.toArray(one)).isEqualTo(ARRAY1);
    
        byte[] array = {(byte) 0, (byte) 1, (byte) 0x55};
    
        List<Byte> three = Arrays.asList((byte) 0, (byte) 1, (byte) 0x55);
        assertThat(Bytes.toArray(three)).isEqualTo(array);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            multimap = create();
            multimap.putAll("foo", asList(2, 3));
            multimap.putAll("bar", asList(4, 5));
            multimap.putAll("foo", asList(6));
            multimap.putAll("baz", asList(7, 8));
            multimap.putAll("dog", asList(9));
            multimap.putAll("bar", asList(10, 11));
            multimap.putAll("cat", asList(12, 13, 14));
            return multimap.asMap().entrySet().iterator();
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BytesTest.java

        // need explicit type parameter to avoid javac warning!?
        List<Byte> none = Arrays.<Byte>asList();
        assertThat(Bytes.toArray(none)).isEqualTo(EMPTY);
    
        List<Byte> one = Arrays.asList((byte) 1);
        assertThat(Bytes.toArray(one)).isEqualTo(ARRAY1);
    
        byte[] array = {(byte) 0, (byte) 1, (byte) 0x55};
    
        List<Byte> three = Arrays.asList((byte) 0, (byte) 1, (byte) 0x55);
        assertThat(Bytes.toArray(three)).isEqualTo(array);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

    import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.testing.IteratorTester;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

          assertEmpty(map);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertEqualInOrder() {
        List<?> list = asList("a", "b", "c");
        assertEqualInOrder(list, list);
    
        List<?> fewer = asList("a", "b");
        try {
          assertEqualInOrder(list, fewer);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

          assertEmpty(map);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertEqualInOrder() {
        List<?> list = asList("a", "b", "c");
        assertEqualInOrder(list, list);
    
        List<?> fewer = asList("a", "b");
        try {
          assertEqualInOrder(list, fewer);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top