from solution import rolling_mean CASES = [ (([1, 2, 3, 4], 2), [1.5, 2.5, 3.5]), ] failed = 0 for args, want in CASES: got = rolling_mean(*args) status = 'ok' if got == want else 'FAIL' failed += status == 'FAIL' print(status, 'rolling_mean', args, '->', repr(got), '(expected', repr(want) + ')') print('passed', len(CASES) - failed, 'of', len(CASES))