Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testPartition_empty (0.07 sec)

  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));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ListsTest.java

      }
    
      public void testPartition_badSize() {
        List<Integer> source = singletonList(1);
        assertThrows(IllegalArgumentException.class, () -> partition(source, 0));
      }
    
      public void testPartition_empty() {
        List<Integer> source = emptyList();
        List<List<Integer>> partitions = partition(source, 1);
        assertTrue(partitions.isEmpty());
        assertEquals(0, partitions.size());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  3. android/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));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  4. 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());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  5. 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());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
Back to top