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