diff --git a/src/days/day_01.rs b/src/days/day_01.rs index cb7adfa..9c81b20 100644 --- a/src/days/day_01.rs +++ b/src/days/day_01.rs @@ -85,4 +85,14 @@ pub fn run() { let total_distance: i32 = distances.iter().sum(); println!("Total distance between the lists in Day 01: {}", total_distance); +} + +#[cfg(test)] +mod day_01_tests { + use super::*; + + #[test] + fn test_day_01() { + run(); + } } \ No newline at end of file