Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for test_empty (0.45 sec)

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

                    CollectionFeature.NON_STANDARD_TOSTRING,
                    CollectionFeature.SERIALIZABLE)
                .createTestSuite());
        return suite;
      }
    
      public void testEmpty() {
        ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.of();
    
        assertThat(rangeSet.asRanges()).isEmpty();
        assertEquals(ImmutableRangeSet.<Integer>all(), rangeSet.complement());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(original);
        assertMapEquals(copy, "one", 1, "two", 2, "three", 3);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
      }
    
      public void testEmpty() {
        ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.of();
        assertEquals(Collections.<String, Integer>emptyMap(), bimap);
        assertEquals(Collections.<Integer, String>emptyMap(), bimap.inverse());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1);
      }
    
      public void testIsEmpty() {
        assertThat(ImmutableDoubleArray.of().isEmpty()).isTrue();
        assertThat(ImmutableDoubleArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).isEmpty()).isFalse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
        assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1);
      }
    
      public void testIsEmpty() {
        assertThat(ImmutableIntArray.of().isEmpty()).isTrue();
        assertThat(ImmutableIntArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableIntArray.of(0, 1, 3).isEmpty()).isFalse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1);
      }
    
      public void testIsEmpty() {
        assertThat(ImmutableDoubleArray.of().isEmpty()).isTrue();
        assertThat(ImmutableDoubleArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).isEmpty()).isFalse();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        matcher.setBits(bitset);
        for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {
          assertEquals(matcher.matches((char) i), bitset.get(i));
        }
      }
    
      public void testEmpty() throws Exception {
        doTestEmpty(CharMatcher.any());
        doTestEmpty(CharMatcher.none());
        doTestEmpty(is('a'));
        doTestEmpty(isNot('a'));
        doTestEmpty(anyOf(""));
        doTestEmpty(anyOf("x"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/CharMatcherTest.java

        matcher.setBits(bitset);
        for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {
          assertEquals(matcher.matches((char) i), bitset.get(i));
        }
      }
    
      public void testEmpty() throws Exception {
        doTestEmpty(CharMatcher.any());
        doTestEmpty(CharMatcher.none());
        doTestEmpty(is('a'));
        doTestEmpty(isNot('a'));
        doTestEmpty(anyOf(""));
        doTestEmpty(anyOf("x"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testLimit_illegalArgument() {
        List<String> list = newArrayList("a", "b", "c");
        assertThrows(IllegalArgumentException.class, () -> Iterables.limit(list, -1));
      }
    
      public void testIsEmpty() {
        Iterable<String> emptyList = emptyList();
        assertTrue(Iterables.isEmpty(emptyList));
    
        Iterable<String> singletonList = singletonList("foo");
        assertFalse(Iterables.isEmpty(singletonList));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testLimit_illegalArgument() {
        List<String> list = newArrayList("a", "b", "c");
        assertThrows(IllegalArgumentException.class, () -> Iterables.limit(list, -1));
      }
    
      public void testIsEmpty() {
        Iterable<String> emptyList = emptyList();
        assertTrue(Iterables.isEmpty(emptyList));
    
        Iterable<String> singletonList = singletonList("foo");
        assertFalse(Iterables.isEmpty(singletonList));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
Back to top