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.38 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.37 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.36 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.35 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.34 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.33 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.32 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.31 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.30 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.29 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.28 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.27 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.26 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.24 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.23 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.22 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.21 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.20 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.19 tracks/go/exercises/leap/cases_test.go
trackler-2.0.8.18 tracks/go/exercises/leap/cases_test.go