@Test
    public void testMinAllMaxAll() {
        Supplier<Seq<Integer>> s = () -> Seq.of(1, 1, 2, 3, 4, 5, 5, 6);

        assertEquals(asList(6)   , s.get().maxAll().toList());
        assertEquals(asList(3, 3), s.get().maxAll(t -> Math.abs(t - 4)).toList());
        assertEquals(asList(4, 4), s.get().maxAll(t -> Math.abs(t - 5)).toList());
        assertEquals(asList(1, 1), s.get().minAll().toList());
        assertEquals(asList(0)   , s.get().minAll(t -> Math.abs(t - 4)).toList());
        assertEquals(asList(0, 0), s.get().minAll(t -> Math.abs(t - 5)).toList());
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java