From d923633a58b59628a118191339ba21ef26693db2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 1 Dec 2023 10:44:00 -0500 Subject: [PATCH] Add day1 test --- src/day01.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/day01.rs b/src/day01.rs index 31f50cd..5499000 100644 --- a/src/day01.rs +++ b/src/day01.rs @@ -78,3 +78,13 @@ fn parse_digit(s: &str) -> u32 { _ => s.parse().unwrap(), } } + +mod tests { + use super::find_digits_part2; + + #[test] + fn twone() { + assert_eq!(find_digits_part2("twone"), 21); + assert_eq!(find_digits_part2("8oneightakljsdf"), 88); + } +}