From f2677b52e56df6c8edeef822a9b8ccbf79e8359e Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Thu, 5 Dec 2019 21:27:13 +0100 Subject: [PATCH] Add day04 (WIP). --- src/day04.rs | 10 ++++++++++ src/main.rs | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/day04.rs diff --git a/src/day04.rs b/src/day04.rs new file mode 100644 index 0000000..9cf8099 --- /dev/null +++ b/src/day04.rs @@ -0,0 +1,10 @@ + + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn part1() { + } +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index eff33ed..ad8d367 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,6 +26,11 @@ fn day03() -> String { ) } +fn day04() -> String { + //let code = common::read_list_of_numbers("data/day02.input", ","); + format!("part1: {}, part2: {}", "", "") +} + fn do_day(days: &[fn() -> String], day: usize) { let now = Instant::now(); println!("Result of day {}: {} (time: {} μs)", day, days[day - 1](), now.elapsed().as_micros()); @@ -37,7 +42,8 @@ fn main() { let days: Vec String> = vec!( day01, day02, - day03 + day03, + day04 ); let args: Vec = env::args().skip(1).collect(); -- 2.45.2