Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for testPartition_empty (0.13 seconds)

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

      }
    
      public void testPartition_badSize() {
        Iterable<Integer> source = singleton(1);
        assertThrows(IllegalArgumentException.class, () -> Iterables.partition(source, 0));
      }
    
      public void testPartition_empty() {
        Iterable<Integer> source = emptySet();
        Iterable<List<Integer>> partitions = Iterables.partition(source, 1);
        assertTrue(Iterables.isEmpty(partitions));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
        assertThrows(IllegalArgumentException.class, () -> Iterators.partition(source, 0));
      }
    
      public void testPartition_empty() {
        Iterator<Integer> source = emptyIterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertFalse(partitions.hasNext());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
        assertThrows(IllegalArgumentException.class, () -> Iterators.partition(source, 0));
      }
    
      public void testPartition_empty() {
        Iterator<Integer> source = emptyIterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertFalse(partitions.hasNext());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
Back to Top