@Test public void manyNumbersAcrossTwentiesAndThirties() throws Exception { Collection<Integer> missingNumbers = finder.missingNumbers(Arrays.asList(27, 29, 34)); assertEquals(missingNumbers, Arrays.asList(28, 30, 31, 32, 33)); }
@Test public void numbersLargerThanThreshold() throws Exception { Collection<Integer> missingNumbers = finder.missingNumbers(Arrays.asList(27, 34)); assertEquals(missingNumbers, Arrays.asList(28, 29, 30, 31, 32, 33)); }
@Test public void manyNumbersMissingInASequence() throws Exception { Collection<Integer> missingNumbers = finder.missingNumbers(Arrays.asList(12, 13, 17)); assertEquals(missingNumbers, Arrays.asList(14, 15, 16)); }