100% coverage for all days
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julius 2021-12-02 14:44:38 +01:00
parent 053f4ef153
commit 797c33b090
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone)]
pub struct Day01(Vec<i32>); pub struct Day01(Vec<i32>);
impl crate::day::Day for Day01 { impl crate::day::Day for Day01 {

View file

@ -95,4 +95,11 @@ forward 2";
let d = Day02::init(f); let d = Day02::init(f);
assert_eq!("1592426537", d.part2()) assert_eq!("1592426537", d.part2())
} }
#[test]
#[should_panic]
fn very_invalid_input(){
let f = String::from("invalid 10");
let d = Day02::init(f);
}
} }