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.8.17 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.16 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.15 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.14 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.13 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.12 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.11 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.10 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.9 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.8 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.7 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.6 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.5 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.4 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.3 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.2 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.1 tracks/go/exercises/leap/cases_test.go
trackler-2.0.7.0 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.44 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.43 tracks/go/exercises/leap/cases_test.go