Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPermutationSetSizeOverflow (0.33 sec)

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

        assertPermutationsCount(40320, Collections2.permutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8)));
      }
    
      public void testPermutationSetSizeOverflow() {
        // 13 elements overflow an int
        assertEquals(
            Integer.MAX_VALUE,
            Collections2.permutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)).size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top