feat: trim input in tests
This commit is contained in:
		| @@ -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); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| "###; | "###; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user