Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testPartition_badSize (0.14 sec)

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

        } catch (NoSuchElementException expected) {
        }
        iterator.remove();
        assertEquals(asList("1", "2", "3"), list);
        assertFalse(iterator.hasNext());
      }
    
      public void testPartition_badSize() {
        List<Integer> source = singletonList(1);
        assertThrows(IllegalArgumentException.class, () -> partition(source, 0));
      }
    
      public void testPartition_empty() {
    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

        } catch (NoSuchElementException expected) {
        }
        iterator.remove();
        assertEquals(asList("1", "2", "3"), list);
        assertFalse(iterator.hasNext());
      }
    
      public void testPartition_badSize() {
        List<Integer> source = singletonList(1);
        assertThrows(IllegalArgumentException.class, () -> partition(source, 0));
      }
    
      public void testPartition_empty() {
    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

        int n = 4;
        Iterable<Integer> repeated = Iterables.concat(nCopies(n, iterable));
        assertThat(repeated).containsExactly(1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3).inOrder();
      }
    
      public void testPartition_badSize() {
        Iterable<Integer> source = singleton(1);
        assertThrows(IllegalArgumentException.class, () -> Iterables.partition(source, 0));
      }
    
      public void testPartition_empty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        a = emptySet();
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a.iterator(), b.iterator()));
        assertFalse(elementsEqual(b.iterator(), a.iterator()));
      }
    
      public void testPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
        assertThrows(IllegalArgumentException.class, () -> Iterators.partition(source, 0));
      }
    
      public void testPartition_empty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        a = emptySet();
        b = asList(4, 8, 15, 16, 23, 42);
        assertFalse(elementsEqual(a.iterator(), b.iterator()));
        assertFalse(elementsEqual(b.iterator(), a.iterator()));
      }
    
      public void testPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
        assertThrows(IllegalArgumentException.class, () -> Iterators.partition(source, 0));
      }
    
      public void testPartition_empty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top