Exemple #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)
Exemple #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)
Exemple #3
0
def test_is_strictly_increasing__increasing_sequence():
    assert utils.is_strictly_increasing(range(100))
Exemple #4
0
def test_is_strictly_increasing__increasing_sequence():
    assert utils.is_strictly_increasing(range(100))