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