Beispiel #1
0
def test_is_strictly_increasing__non_increasing_sequence():
    lst = range(100)
    first, second = random.sample(lst, 2)
    lst[first], lst[second] = lst[second], lst[first]

    assert not utils.is_strictly_increasing(lst)
Beispiel #2
0
def test_is_strictly_increasing__non_increasing_sequence():
    lst = range(100)
    first, second = random.sample(lst, 2)
    lst[first], lst[second] = lst[second], lst[first]

    assert not utils.is_strictly_increasing(lst)
Beispiel #3
0
def test_is_strictly_increasing__increasing_sequence():
    assert utils.is_strictly_increasing(range(100))
Beispiel #4
0
def test_is_strictly_increasing__increasing_sequence():
    assert utils.is_strictly_increasing(range(100))