def test_allMatch_2(): stream = Stream([1, 2, 3, 4]) assert stream.allMatch(lambda x: x < 4) is False
def test_allMatch_1(): stream = Stream([1, 2, 3, 4]) assert stream.allMatch(lambda x: x > 0) is True