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