Skip to content

Commit 52d76c5

Browse files
committed
[2022] Use private inputs
1 parent 6960475 commit 52d76c5

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

2022/tests/day01.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day01::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day01.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day01.txt");
66
assert_eq!(part1(&content), 71780);
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day01.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day01.txt");
1212
assert_eq!(part2(&content), 212489);
1313
}

2022/tests/day02.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day02::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day02.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day02.txt");
66
assert_eq!(part1(&content), 12156);
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day02.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day02.txt");
1212
assert_eq!(part2(&content), 10835);
1313
}

2022/tests/day03.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day03::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day03.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day03.txt");
66
assert_eq!(part1(&content), 8240);
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day03.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day03.txt");
1212
assert_eq!(part2(&content), 2587);
1313
}

2022/tests/day04.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day04::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day04.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day04.txt");
66
assert_eq!(part1(&content), 483);
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day04.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day04.txt");
1212
assert_eq!(part2(&content), 874);
1313
}

2022/tests/day05.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day05::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day05.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day05.txt");
66
assert_eq!(part1(&content), "ZBDRNPMVH");
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day05.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day05.txt");
1212
assert_eq!(part2(&content), "WDLPFNNNB");
1313
}

2022/tests/day06.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ use aoc2022::days::day06::{part1, part2};
22

33
#[test]
44
fn test_part1() {
5-
let content = std::include_str!("../../private/inputs/2019/day06.txt.txt");
5+
let content = std::include_str!("../../private/inputs/2022/day06.txt");
66
assert_eq!(part1(&content), 1262);
77
}
88

99
#[test]
1010
fn test_part2() {
11-
let content = std::include_str!("../../private/inputs/2019/day06.txt.txt");
11+
let content = std::include_str!("../../private/inputs/2022/day06.txt");
1212
assert_eq!(part2(&content), 3444);
1313
}

0 commit comments

Comments
 (0)