mirror of
https://github.com/theoludwig/advent_of_code.git
synced 2025-05-18 19:27:51 +02:00
test: add cases for input.txt
This commit is contained in:
@ -27,13 +27,7 @@ treb7uchet
|
||||
|
||||
In this example, the calibration values of these four lines are `12`, `38`, `15`, and `77`. Adding these together produces `142`.
|
||||
|
||||
Consider your entire calibration document. What is the sum of all of the calibration values?
|
||||
|
||||
To begin, [get your puzzle input](./input.txt).
|
||||
|
||||
Your puzzle answer was `55130`.
|
||||
|
||||
**The first half of this puzzle is complete! It provides one gold star: `*`.**
|
||||
Consider your entire calibration document. **What is the sum of all of the calibration values?**
|
||||
|
||||
## Instructions - Part 2
|
||||
|
||||
@ -54,7 +48,3 @@ zoneight234
|
||||
In this example, the calibration values are `29`, `83`, `13`, `24`, `42`, `14`, and `76`. Adding these together produces `281`.
|
||||
|
||||
**What is the sum of all of the calibration values?**
|
||||
|
||||
Your puzzle answer was `54985`.
|
||||
|
||||
**Both parts of this puzzle are complete! They provide two gold stars: `**`.**
|
||||
|
@ -76,4 +76,14 @@ mod day_1_tests {
|
||||
fn test_part_2_example() {
|
||||
assert_eq!(part_2(include_str!("../input_example_2.txt")), 281);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_part_1() {
|
||||
assert_eq!(part_1(include_str!("../input.txt")), 55130);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_part_2() {
|
||||
assert_eq!(part_2(include_str!("../input.txt")), 54985);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user