Skip to main content

Practice ยท 2 of 2

Mini Build: Test Report Runner

Write run_suite(cases) โ€” cases is a list of (label, callable, expected). For each, call it with NO arguments, compare to expected, and RETURN a dict {"passed": n, "failed": m, "failures": [labels of failed cases in order]}.

Difficulty: beginner

Back to lesson: Practice: Write Your Own Tests