aboutsummaryrefslogtreecommitdiff
path: root/tests/os.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tests/os.nom')
-rw-r--r--tests/os.nom16
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/os.nom b/tests/os.nom
index efc6e56..cbda5b3 100644
--- a/tests/os.nom
+++ b/tests/os.nom
@@ -1,16 +1,12 @@
-#!/usr/bin/env nomsu -V1
+#!/usr/bin/env nomsu -V2.3.4.3
#
Tests for the stuff defined in lib/os.nom
use "core"
use "lib/os.nom"
-
-%lines <-: lines in: read file "tests/os.nom"
-assume: %lines.3 = " Tests for the stuff defined in lib/os.nom"
-
-%n <- 0
-for file %f in "core"
- %n +<- 1
+%lines = (lines in (read file "tests/os.nom"))
+assume (%lines.3 == " Tests for the stuff defined in lib/os.nom")
+%n = 0
+for file %f in "core" (%n += 1)
assume (%n > 0) or barf "Failed to walk the 'core' directory"
-
-say "OS test passed."
+say "OS test passed." \ No newline at end of file