Sha256: bff337eb45892202a45ae833cf3a6b9eb1e84d673ca58bc8b0dfd0863cfbf88d

Contents?: true

Size: 456 Bytes

Versions: 71

Compression:

Stored size: 456 Bytes

Contents

package leap

// Source: exercism/x-common
// Commit: be6fa53 leap: Rewrite the test cases and their descriptions

var testCases = []struct {
	year        int
	expected    bool
	description string
}{
	{2015, false, "year not divisible by 4: common year"},
	{2016, true, "year divisible by 4, not divisible by 100: leap year"},
	{2100, false, "year divisible by 100, not divisible by 400: common year"},
	{2000, true, "year divisible by 400: leap year"},
}

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
trackler-2.0.6.22 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.21 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.20 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.19 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.18 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.17 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.16 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.15 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.14 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.13 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.12 tracks/go/exercises/leap/cases_test.go