The four rules, one example year each
All 6 scenarios hold
Yes/No in the expectation column is read by a custom type converter.
expected outcome
broken scenario
| Scenario | Year | Is Leap Year? |
|---|---|---|
| Not divisible by 4 | 2001 | No |
| Divisible by 4 | 2004 | Yes |
| Divisible by 100 but not by 400 | 2100 | No |
| Divisible by 400 | 2000 | Yes |
| Year zero | 0 | Yes |
| A year before the common era | -1 | No |