1
0
Fork 0

day(20): fix tests

Only one part has a test case.

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-07-07 16:33:17 +02:00
parent b2b2230473
commit d710c92a72
Signed by: mfocko
SSH key fingerprint: SHA256:5YXD7WbPuK60gxnG6DjAwJiS9+swoWj33/HFu8g8JVo

View file

@ -224,4 +224,14 @@ fn main() -> Result<()> {
Day20::main() Day20::main()
} }
test_sample!(day_20, Day20, 11687500, 0); #[cfg(test)]
mod day_20 {
use super::*;
#[test]
fn part_1() {
let path = Day20::get_sample(1);
let mut day = Day20::new(path);
assert_eq!(day.part_1(), 11687500);
}
}