wip: day11a
This commit is contained in:
30
src/day11/mod.rs
Normal file
30
src/day11/mod.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user