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

28
src/day01/mod.rs Normal file
View File

@@ -0,0 +1,28 @@
pub mod part01a;
pub mod part01b;
#[cfg(test)]
mod tests {
use crate::day01::{part01a, part01b};
const PUZZLE: &str = "L68
L30
R48
L5
R60
L55
L1
L99
R14
L82";
#[test]
fn part01a() {
assert_eq!(part01a::solve(PUZZLE.to_string()), 3);
}
#[test]
fn part01b() {
assert_eq!(part01b::solve(PUZZLE.to_string()), 6);
}
}