feat: trim input in tests

This commit is contained in:
Matej Janezic 2022-12-04 21:26:46 +01:00
parent 000001907c
commit 000002009f
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
1 changed files with 2 additions and 2 deletions

View File

@ -25,12 +25,12 @@ mod tests {
#[test] #[test]
fn test_part_one() { fn test_part_one() {
let input = aoc::read_file("test_inputs", DAY); let input = aoc::read_file("test_inputs", DAY);
assert_eq!(part_one(&input), None); assert_eq!(part_one(&input.trim()), None);
} }
#[test] #[test]
fn test_part_two() { fn test_part_two() {
let input = aoc::read_file("test_inputs", DAY); let input = aoc::read_file("test_inputs", DAY);
assert_eq!(part_two(&input), None); assert_eq!(part_two(&input.trim()), None);
} }
} }
"###; "###;