diff --git a/boilerplate/src/main.rs b/boilerplate/src/main.rs index f7c61a1..07318aa 100644 --- a/boilerplate/src/main.rs +++ b/boilerplate/src/main.rs @@ -24,4 +24,24 @@ fn problem1(input: Lines) -> u64 { // PROBLEM 2 solution fn problem2(input: Lines) -> u64 { 0 -} \ No newline at end of file +} + +#[cfg(test)] +mod tests { + use crate::*; + use std::io::Cursor; + + const EXAMPLE: &str = &""; + + #[test] + fn problem1_example() { + let c = Cursor::new(EXAMPLE); + assert_eq!(problem1(c.lines()), 0); + } + + #[test] + fn problem2_example() { + let c = Cursor::new(EXAMPLE); + assert_eq!(problem2(c.lines()), 0); + } +}