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