fix: tests for day 9

This commit is contained in:
Matej Janezic 2023-12-13 14:46:33 +01:00
parent 000002508c
commit 0000026098
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 5 additions and 2 deletions

View File

@ -78,10 +78,13 @@ mod tests {
use super::*;
#[test]
fn test_part_one() {
assert_eq!(part_one(&aoc::template::read_file("examples", 9)), None);
assert_eq!(
part_one(&aoc::template::read_file("examples", 9)),
Some(114)
);
}
#[test]
fn test_part_two() {
assert_eq!(part_two(&aoc::template::read_file("examples", 9)), None);
assert_eq!(part_two(&aoc::template::read_file("examples", 9)), Some(2));
}
}