Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testPartition_empty (0.24 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top