Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 11, 2023
1 parent cb251ff commit 5039bc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/aoc2023/day09/part1.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -44,5 +44,5 @@ def main() -> int:

fclose(f)

printf("%lld\n", result)
printf("%lld\n", result) # Output: 114
return 0
4 changes: 2 additions & 2 deletions examples/aoc2023/day09/part2.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -58,5 +58,5 @@ def main() -> int:

fclose(f)

printf("%lld\n", result)
printf("%lld\n", result) # Output: 2
return 0

0 comments on commit 5039bc2

Please sign in to comment.