From 190f522242b2e91eb3213e828a26886aa7847f3a Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Tue, 3 Dec 2024 18:47:51 +0100 Subject: Refactor and add tests Folders need to have 'sensible' names for hare test to detect them. --- three/+test.ha | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 three/+test.ha (limited to 'three/+test.ha') diff --git a/three/+test.ha b/three/+test.ha new file mode 100644 index 0000000..5ec9745 --- /dev/null +++ b/three/+test.ha @@ -0,0 +1,8 @@ +use os; +use io; + +@test fn testthree() void = { + const f = os::open("three/in")!; + defer io::close(f)!; + assert(do(f) == 161); +}; -- cgit v1.2.3