summaryrefslogtreecommitdiff
path: root/go/leap/cases_test.go
blob: d1af40faa2e7f99f986dc7f8d2c0ba986699e722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package leap

// Source: exercism/x-common
// Commit: 945d08e Merge pull request #50 from soniakeys/master

var testCases = []struct {
	year        int
	expected    bool
	description string
}{
	{1996, true, "leap year"},
	{1997, false, "non-leap year"},
	{1998, false, "non-leap even year"},
	{1900, false, "century"},
	{2400, true, "fourth century"},
	{2000, true, "Y2K"},
}