day1: std input name, refactor jl

This commit is contained in:
Bryce Allen committed 2022-12-02 14:50:08 -05:00
1 parent 97ed63735a
commit eb392d45b2
3 files changed
+40 -22

No files matched your search

+3 -3
View File
@@ -46,13 +46,13 @@ where P: AsRef<Path>, {
}
fn main() {
aoc_day1("day1input.txt", 1);
aoc_day1("input.txt", 1);
}
#[test]
fn day1input() {
assert_eq!(aoc_day1("day1input.txt", 1), 69206);
assert_eq!(aoc_day1("day1input.txt", 3), 197400);
assert_eq!(aoc_day1("input.txt", 1), 69206);
assert_eq!(aoc_day1("input.txt", 3), 197400);
}
#[test]