summaryrefslogtreecommitdiff
path: root/two/+test.ha
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2024-12-03 18:47:51 +0100
committerJulian Hurst <julian.hurst@digdash.com>2024-12-03 18:47:57 +0100
commit190f522242b2e91eb3213e828a26886aa7847f3a (patch)
tree04122a22aa1e92d6f3efe21436d2e75650c1c4c1 /two/+test.ha
parent92524aa912db99becc1b3446d5b68b9cc089c721 (diff)
downloadaoc24-190f522242b2e91eb3213e828a26886aa7847f3a.tar.gz
Refactor and add tests
Folders need to have 'sensible' names for hare test to detect them.
Diffstat (limited to 'two/+test.ha')
-rw-r--r--two/+test.ha8
1 files changed, 8 insertions, 0 deletions
diff --git a/two/+test.ha b/two/+test.ha
new file mode 100644
index 0000000..8f61645
--- /dev/null
+++ b/two/+test.ha
@@ -0,0 +1,8 @@
+use os;
+use io;
+
+@test fn testtwo() void = {
+ const f = os::open("two/in")!;
+ defer io::close(f)!;
+ assert(do(f) == 2);
+};