implementation=broken, suite=all FFF.....FFF [100%] =================================== FAILURES =================================== __________________________________ test_page ___________________________________ test_baseline.py:6: in test_page assert page([10, 20, 30, 40], 1, 2) == [10, 20] E assert [30, 40] == [10, 20] E E At index 0 diff: 30 != 10 E Use -v to get more diff ________________________________ test_discount _________________________________ test_baseline.py:10: in test_discount assert discounted_price(50, 10) == 45 E assert 40 == 45 E + where 40 = discounted_price(50, 10) ________________________________ test_cache_key ________________________________ test_baseline.py:14: in test_cache_key assert cache_key("alpha", 7) != cache_key("beta", 7) E AssertionError: assert '7' != '7' E + where '7' = cache_key('alpha', 7) E + and '7' = cache_key('beta', 7) ____________________________ test_p95_twenty_values ____________________________ test_regressions.py:5: in test_p95_twenty_values assert p95(list(range(1, 21))) == 19 E assert 20 == 19 E + where 20 = p95([1, 2, 3, 4, 5, 6, ...]) E + where [1, 2, 3, 4, 5, 6, ...] = list(range(1, 21)) E + where range(1, 21) = range(1, 21) _______________________________ test_whitespace ________________________________ test_regressions.py:9: in test_whitespace assert word_count(" \thello world\n ") == 2 E AssertionError: assert 6 == 2 E + where 6 = word_count(' \thello world\n ') _______________________________ test_empty_mean ________________________________ test_regressions.py:15: in test_empty_mean assert mean_or_none([]) is None ^^^^^^^^^^^^^^^^ helpers.py:27: in mean_or_none return sum(values) / len(values) ^^^^^^^^^^^^^^^^^^^^^^^^^ E ZeroDivisionError: division by zero =========================== short test summary info ============================ FAILED test_baseline.py::test_page - assert [30, 40] == [10, 20] FAILED test_baseline.py::test_discount - assert 40 == 45 FAILED test_baseline.py::test_cache_key - AssertionError: assert '7' != '7' FAILED test_regressions.py::test_p95_twenty_values - assert 20 == 19 FAILED test_regressions.py::test_whitespace - AssertionError: assert 6 == 2 FAILED test_regressions.py::test_empty_mean - ZeroDivisionError: division by ... 6 failed, 5 passed in 0.01s