Add day1 test

This commit is contained in:
Shadowfacts 2023-12-01 10:44:00 -05:00
parent e887e789d4
commit d923633a58
1 changed files with 10 additions and 0 deletions

View File

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