diff options
Diffstat (limited to '02.c')
-rw-r--r-- | 02.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,6 +4,8 @@ #include "input.h" #define INPUT "input/02.txt" +#define EXPECTED1 2272262L +#define EXPECTED2 2134882034L enum direction { forward, up, down }; @@ -47,7 +49,7 @@ void part1(struct input_str* input) { continue; } } - printf("%ld\n", forwardDst * downDst); + CHECK(forwardDst * downDst, EXPECTED1) } void part2(struct input_str* input) { @@ -70,7 +72,7 @@ void part2(struct input_str* input) { continue; } } - printf("%ld\n", forwardDst * downDst); + CHECK(forwardDst * downDst, EXPECTED2) } int main() { |