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.42 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.41 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.40 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.39 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.38 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.37 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.36 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.35 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.34 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.33 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.32 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.31 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.30 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.29 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.28 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.27 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.26 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.25 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.24 tracks/go/exercises/leap/cases_test.go
trackler-2.0.6.23 tracks/go/exercises/leap/cases_test.go