diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2024-12-03 18:47:51 +0100 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2024-12-03 18:47:57 +0100 |
| commit | 190f522242b2e91eb3213e828a26886aa7847f3a (patch) | |
| tree | 04122a22aa1e92d6f3efe21436d2e75650c1c4c1 /one/+test.ha | |
| parent | 92524aa912db99becc1b3446d5b68b9cc089c721 (diff) | |
| download | aoc24-190f522242b2e91eb3213e828a26886aa7847f3a.tar.gz | |
Refactor and add tests
Folders need to have 'sensible' names for hare test to detect them.
Diffstat (limited to 'one/+test.ha')
| -rw-r--r-- | one/+test.ha | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/one/+test.ha b/one/+test.ha new file mode 100644 index 0000000..7041261 --- /dev/null +++ b/one/+test.ha @@ -0,0 +1,8 @@ +use os; +use io; + +@test fn testone() void = { + const f = os::open("one/in")!; + defer io::close(f)!; + assert(do(f) == 11); +}; |
