From 1b042a164bbba15cb48a85136035dcd86556005e Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 2 Dec 2022 23:40:13 -0600 Subject: [PATCH] Day 4 scaffolded --- 2022/rust/src/day4.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 2022/rust/src/day4.rs diff --git a/2022/rust/src/day4.rs b/2022/rust/src/day4.rs new file mode 100644 index 0000000..0826245 --- /dev/null +++ b/2022/rust/src/day4.rs @@ -0,0 +1,32 @@ +mod common; + +fn main() { + let input = common::day_input(4); + println!("Part 1: {}", part1(&input)); + println!("Part 2: {}", part2(&input)); +} + +fn part1(input: &str) -> i32 { + 0 +} + +fn part2(input: &str) -> i32 { + 0 +} + +#[cfg(test)] +mod tests { + use super::*; + + const TEST_INPUT: &str = ""; + + #[test] + fn test_part1() { + assert_eq!(part1(TEST_INPUT), 0) + } + + #[test] + fn test_part2() { + assert_eq!(part2(TEST_INPUT), 0) + } +}