Skip to content

Commit 4d3f21e

Browse files
committed
[2019] Use private inputs
1 parent 9825d8b commit 4d3f21e

25 files changed

+50
-50
lines changed

2019/tests/day01.rs

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

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

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

2019/tests/day02.rs

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

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

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

2019/tests/day03.rs

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

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

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

2019/tests/day04.rs

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

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

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

2019/tests/day05.rs

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

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

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

2019/tests/day06.rs

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

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

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

2019/tests/day07.rs

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

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

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

2019/tests/day08.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ const PART2_EXPECTED: &'static str = r"### ## # # # ##
99

1010
#[test]
1111
fn test_part1() {
12-
let content = std::include_str!("../data/day08");
12+
let content = std::include_str!("../../private/inputs/2019/day08.txt");
1313
assert_eq!(part1(&content), 1920);
1414
}
1515

1616
#[test]
1717
fn test_part2() {
18-
let content = std::include_str!("../data/day08");
18+
let content = std::include_str!("../../private/inputs/2019/day08.txt");
1919
assert_eq!(part2(&content), PART2_EXPECTED);
2020
}

2019/tests/day09.rs

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

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

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

2019/tests/day10.rs

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

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

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

0 commit comments

Comments
 (0)