Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSkip_simple (0.08 sec)

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

      }
    
      public void testLast_emptyIterable() {
        Set<String> set = newHashSet();
        assertThat(FluentIterable.from(set).last()).isAbsent();
      }
    
      public void testSkip_simple() {
        Collection<String> set = ImmutableSet.of("a", "b", "c", "d", "e");
        assertEquals(
            Lists.newArrayList("c", "d", "e"), Lists.newArrayList(FluentIterable.from(set).skip(2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertTrue(Iterables.isEmpty(emptyList));
    
        Iterable<String> singletonList = singletonList("foo");
        assertFalse(Iterables.isEmpty(singletonList));
      }
    
      public void testSkip_simple() {
        Collection<String> set = ImmutableSet.of("a", "b", "c", "d", "e");
        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(set, 2)));
        assertEquals("[c, d, e]", skip(set, 2).toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top