diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-18 01:27:56 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-18 01:28:17 -0700 |
| commit | d5cfaa37be9e278c44a25ef448a071390597306e (patch) | |
| tree | 7fbe78b5153bb9c761c283533943ab80da3a1844 /tests/os.nom | |
| parent | c7c657d38f999901225b33482ef3a15994526feb (diff) | |
Upgrading to version 2.3 (main change: "=" instead of "<-" for
assignment)
Diffstat (limited to 'tests/os.nom')
| -rw-r--r-- | tests/os.nom | 16 |
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 |
