From d5cfaa37be9e278c44a25ef448a071390597306e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 18 Jul 2018 01:27:56 -0700 Subject: Upgrading to version 2.3 (main change: "=" instead of "<-" for assignment) --- tests/os.nom | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'tests/os.nom') 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 -- cgit v1.2.3