Commit 45e13452 authored by Thomas Torsney-Weir's avatar Thomas Torsney-Weir

fix tests

parent 8fa71602
......@@ -22,7 +22,7 @@ def test_digit_order(n, i):
def test_div_by_7(n, i):
# don't worry about errors
try:
assert l1p1.div(n, i) % 7 == 0
assert l1p1.div7(n, i) % 7 == 0
except Exception as e:
assert str(e) == "not possible"
......
......@@ -21,7 +21,7 @@ def test_already_sorted():
def test_reverse_sorted():
l = [5, 4, 3, 2, 1]
assert l1p1.sort_list(l) == reversed(l)
assert l1p1.sort_list(l) == list(reversed(l))
@given(st.lists(st.integers()))
def test_random_lists(l):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment