Skip to main content

Practice · 1 of 2

Case Matrix

CHALLENGE
Difficulty: intermediate+25 XP

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.

Back to lesson: Practice: subTest Drills