day1: std input name, refactor jl

This commit is contained in:
Bryce Allen
2022-12-02 14:50:08 -05:00
parent 97ed63735a
commit eb392d45b2
3 changed files with 40 additions and 22 deletions

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]