Skip to main content

Practice ยท 1 of 2

Case Matrix

Implement is_leap(year) (divisible by 4, except centuries unless divisible by 400). Then write TestLeap using subTest over at least 6 year/expected pairs including 2000, 1900, 2024, 2023. Assign the class to SUITE_TEST.

Difficulty: intermediate

Back to lesson: Practice: subTest Drills