From 5039bc2123563d42c666d94fc3019d3e6aa49fe1 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 11 Dec 2023 17:07:04 +0200 Subject: [PATCH] fix tests --- examples/aoc2023/day09/part1.jou | 4 ++-- examples/aoc2023/day09/part2.jou | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/aoc2023/day09/part1.jou b/examples/aoc2023/day09/part1.jou index 93f72e54..d201dd41 100644 --- a/examples/aoc2023/day09/part1.jou +++ b/examples/aoc2023/day09/part1.jou @@ -25,7 +25,7 @@ def predict_next(nums: long*, len: int) -> long: # return value is an array terminated by nums_len=-1 def main() -> int: - f = fopen("input.txt", "r") + f = fopen("sampleinput.txt", "r") assert f != NULL line: byte[1000] @@ -44,5 +44,5 @@ def main() -> int: fclose(f) - printf("%lld\n", result) + printf("%lld\n", result) # Output: 114 return 0 diff --git a/examples/aoc2023/day09/part2.jou b/examples/aoc2023/day09/part2.jou index 7e513bc9..f3521c2c 100644 --- a/examples/aoc2023/day09/part2.jou +++ b/examples/aoc2023/day09/part2.jou @@ -38,7 +38,7 @@ def reverse(nums: long*, len: int) -> None: # return value is an array terminated by nums_len=-1 def main() -> int: - f = fopen("input.txt", "r") + f = fopen("sampleinput.txt", "r") assert f != NULL line: byte[1000] @@ -58,5 +58,5 @@ def main() -> int: fclose(f) - printf("%lld\n", result) + printf("%lld\n", result) # Output: 2 return 0