Add day04 (WIP).
authorGreg Burri <greg.burri@gmail.com>
Thu, 5 Dec 2019 20:27:13 +0000 (21:27 +0100)
committerGreg Burri <greg.burri@gmail.com>
Thu, 5 Dec 2019 20:27:13 +0000 (21:27 +0100)
src/day04.rs [new file with mode: 0644]
src/main.rs

diff --git a/src/day04.rs b/src/day04.rs
new file mode 100644 (file)
index 0000000..9cf8099
--- /dev/null
@@ -0,0 +1,10 @@
+\r
+\r
+#[cfg(test)]\r
+mod tests {\r
+    use super::*;\r
+\r
+    #[test]\r
+    fn part1() {\r
+    }\r
+}
\ No newline at end of file
index eff33ed..ad8d367 100644 (file)
@@ -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<fn() -> String> = vec!(
         day01,
         day02,
-        day03
+        day03,
+        day04
     );
 
     let args: Vec<String> = env::args().skip(1).collect();