Day 4 scaffolded

This commit is contained in:
Daniel Flanagan 2022-12-02 23:40:13 -06:00
parent 9410d4572e
commit 1b042a164b
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

32
2022/rust/src/day4.rs Normal file
View file

@ -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)
}
}