projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e2954
)
using result type in aoc-2021/day01
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sun, 26 Feb 2023 04:51:17 +0000
(22:51 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sun, 26 Feb 2023 04:51:17 +0000
(22:51 -0600)
tests/aoc-2021/day01.onyx
patch
|
blob
|
history
diff --git
a/tests/aoc-2021/day01.onyx
b/tests/aoc-2021/day01.onyx
index 8a67a4c8881574f690ed87d593d2cc4658f206f6..bc106c9ee1b19a12ecb09653fa8f0076812e0569 100644
(file)
--- a/
tests/aoc-2021/day01.onyx
+++ b/
tests/aoc-2021/day01.onyx
@@
-14,8
+14,7
@@
count_increasing :: (arr: [] $T) -> u32 {
}
main :: (args) => {
- err, file := os.open("./tests/aoc-2021/input/day01.txt");
- assert(err == .None, "Error opening file");
+ file := os.open("./tests/aoc-2021/input/day01.txt")->expect("Error opening file");
reader := io.reader_make(^file);
defer os.close(^file);