Ejemplo n.º 1
0
def test_anyMatch_2():
    stream = Stream([1, 2, 3, 4])
    assert stream.anyMatch(lambda x: x < 0) is False
Ejemplo n.º 2
0
def test_anyMatch_1():
    stream = Stream([1, 2, 3, 4])
    assert stream.anyMatch(lambda x: x > 3) is True