Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

The four rules, one example year each

All 6 scenarios hold

The classic introductory example is the Gregorian leap year rules. The first rule below gives one example year per rule. The second uses value sets, and shows that each rule holds across eras.

A custom type converter reads Yes and No in the expectation column.

The table has six rows for four rules. The last two rows are outside the four rules. They are year zero and a year before the common era, where the same arithmetic applies.

expected outcome broken scenario
ScenarioYearIs Leap Year?
Not divisible by 42001No
Divisible by 42004Yes
Divisible by 100 but not by 4002100No
Divisible by 4002000Yes
Year zero0Yes
A year before the common era-1No