Skip to content

Commit

Permalink
leap: add years that refute some unusual factors (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertseng authored Oct 10, 2020
1 parent 0a8a760 commit 413b24a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/leap/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"4fe9b84c-8e65-489e-970b-856d60b8b78e" = true

# year divisible by 4 and 5 is still a leap year
"7fc6aed7-e63c-48f5-ae05-5fe182f60a5d" = false
"7fc6aed7-e63c-48f5-ae05-5fe182f60a5d" = true

# year divisible by 100, not divisible by 400 in common year
"78a7848f-9667-4192-ae53-87b30c9a02dd" = true

# year divisible by 100 but not by 3 is still not a leap year
"9d70f938-537c-40a6-ba19-f50739ce8bac" = false
"9d70f938-537c-40a6-ba19-f50739ce8bac" = true

# year divisible by 400 in leap year
"42ee56ad-d3e6-48f1-8e3f-c84078d916fc" = true

# year divisible by 400 but not by 125 is still a leap year
"57902c77-6fe9-40de-8302-587b5c27121e" = false
"57902c77-6fe9-40de-8302-587b5c27121e" = true

# year divisible by 200, not divisible by 400 in common year
"c30331f6-f9f6-4881-ad38-8ca8c12520c1" = true
3 changes: 3 additions & 0 deletions exercises/leap/source/leap/LeapTest.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import ceylon.test {
[2015, false],
[1970, false],
[1996, true],
[1960, true],
[2100, false],
[1900, false],
[2000, true],
[2400, true],
[1800, false]
};

Expand Down

0 comments on commit 413b24a

Please sign in to comment.