Initial Commit

This commit is contained in:
2016-08-13 18:20:14 -05:00
commit 50f4a86fd8
408 changed files with 15301 additions and 0 deletions

24
rust/leap/tests/leap.rs Normal file
View File

@@ -0,0 +1,24 @@
extern crate leap;
#[test]
fn test_vanilla_leap_year() {
assert_eq!(leap::is_leap_year(1996), true);
}
#[test]
#[ignore]
fn test_any_old_year() {
assert_eq!(leap::is_leap_year(1997), false);
}
#[test]
#[ignore]
fn test_century() {
assert_eq!(leap::is_leap_year(1900), false);
}
#[test]
#[ignore]
fn test_exceptional_century() {
assert_eq!(leap::is_leap_year(2000), true);
}