refactored project structure
This commit is contained in:
28
src/day01/mod.rs
Normal file
28
src/day01/mod.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user