100% coverage for all days
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
053f4ef153
commit
797c33b090
|
@ -1,4 +1,4 @@
|
|||
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone)]
|
||||
|
||||
pub struct Day01(Vec<i32>);
|
||||
|
||||
impl crate::day::Day for Day01 {
|
||||
|
|
|
@ -95,4 +95,11 @@ forward 2";
|
|||
let d = Day02::init(f);
|
||||
assert_eq!("1592426537", d.part2())
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn very_invalid_input(){
|
||||
let f = String::from("invalid 10");
|
||||
let d = Day02::init(f);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue