wip: day11a

This commit is contained in:
2025-12-12 08:17:58 +01:00
parent b1c43e46fc
commit 0a08ad2cae
7 changed files with 778 additions and 17 deletions

30
src/day11/mod.rs Normal file
View File

@@ -0,0 +1,30 @@
pub mod part11a;
pub mod part11b;
mod common;
#[cfg(test)]
mod tests {
use crate::day11::{part11a, part11b};
const PUZZLE: &str = "aaa: you hhh
you: bbb ccc
bbb: ddd eee
ccc: ddd eee fff
ddd: ggg
eee: out
fff: out
ggg: out
hhh: ccc fff iii
iii: out";
#[test]
fn part11a() {
assert_eq!(part11a::solve(PUZZLE.to_string()), 5);
}
#[test]
#[ignore]
fn part11b() {
assert_eq!(part11b::solve(PUZZLE.to_string()), 0);
}
}