refactored project structure

This commit is contained in:
2025-12-09 20:11:49 +01:00
parent 87bacd3b4c
commit 7928c2334f
69 changed files with 783 additions and 354 deletions

22
src/day03/mod.rs Normal file
View File

@@ -0,0 +1,22 @@
pub mod part03a;
pub mod part03b;
#[cfg(test)]
mod tests {
use crate::day03::{part03a, part03b};
const PUZZLE: &str = "987654321111111
811111111111119
234234234234278
818181911112111";
#[test]
fn part03a() {
assert_eq!(part03a::solve(PUZZLE.to_string()), 357);
}
#[test]
fn part03b() {
assert_eq!(part03b::solve(PUZZLE.to_string()), 3121910778619);
}
}