added remaining days

This commit is contained in:
2025-12-09 20:40:35 +01:00
parent 1c1252c4e1
commit b67163521e
10 changed files with 1255 additions and 10 deletions

40
src/day08/mod.rs Normal file
View File

@@ -0,0 +1,40 @@
pub mod part08a;
pub mod part08b;
#[cfg(test)]
mod tests {
use crate::day08::{part08a, part08b};
const PUZZLE: &str = "162,817,812
57,618,57
906,360,560
592,479,940
352,342,300
466,668,158
542,29,236
431,825,988
739,650,466
52,470,668
216,146,977
819,987,18
117,168,530
805,96,715
346,949,466
970,615,88
941,993,340
862,61,35
984,92,344
425,690,689";
#[test]
#[ignore]
fn part08a() {
assert_eq!(part08a::solve(PUZZLE.to_string()), 40);
}
#[test]
#[ignore]
fn part08b() {
assert_eq!(part08b::solve(PUZZLE.to_string()), 0);
}
}