Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testCopyOf_plainIterable_iteratesOnce (0.79 sec)

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

        Set<String> set = copyOf(iterable);
        assertEquals(2, set.size());
        assertTrue(set.contains("a"));
        assertTrue(set.contains("b"));
      }
    
      public void testCopyOf_plainIterable_iteratesOnce() {
        CountingIterable iterable = new CountingIterable();
        Set<String> unused = copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
      public void testCopyOf_shortcut_empty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        CountingIterable iterable = new CountingIterable();
        List<String> list = ImmutableList.copyOf(iterable);
        assertEquals(asList("a", "b", "a"), list);
      }
    
      public void testCopyOf_plainIterable_iteratesOnce() {
        CountingIterable iterable = new CountingIterable();
        ImmutableList<String> unused = ImmutableList.copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        CountingIterable iterable = new CountingIterable();
        List<String> list = ImmutableList.copyOf(iterable);
        assertEquals(asList("a", "b", "a"), list);
      }
    
      public void testCopyOf_plainIterable_iteratesOnce() {
        CountingIterable iterable = new CountingIterable();
        ImmutableList<String> unused = ImmutableList.copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top