From 4efe44ed271aeed8e25e909344788d92a0d9f82b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:50:46 -0800 Subject: Fully upgraded to 4.10.12.7, including deprecating the old list/dict comprehension methods, in favor of the new native support. --- tools/test.nom | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/test.nom') diff --git a/tools/test.nom b/tools/test.nom index 6e74aa6..f9ed2cb 100755 --- a/tools/test.nom +++ b/tools/test.nom @@ -1,8 +1,8 @@ -#!/usr/bin/env nomsu -V4.8.10 +#!/usr/bin/env nomsu -V4.10.12.7 # Tool to run all tests in a file (i.e. the code block inside a call to 'test %'). Usage: nomsu tools/test.nom file1 file2 directory1 ... - + use "lib/os.nom" use "lib/consolecolor.nom" @@ -17,16 +17,15 @@ if (%args.1 == "-v"): for %path in (command line args): for file %filename in %path: if (%filename::matches "%.nom$"): use %filename - for %path in (command line args): use %path -%tests = ((=lua "Source:from_string(\%s)") = %t for %s = %t in (tests)) +%tests = {: for %s = %t in (tests): add (=lua "Source:from_string(\%s)") = %t} for %path in (command line args): for file %filename in %path: unless (%filename::matches "%.nom$"): do next %filename %file_tests = [] for %src = %test in %tests: if (%src.filename == %filename): - %file_tests::add {test:%test, source:%src} + %file_tests::add {test: %test, source: %src} unless (%file_tests is empty): sort %file_tests by % -> %.source @@ -37,6 +36,7 @@ for %path in (command line args): say " \(yellow (%.test::with "\n" -> "\n "))" run %.test - if %verbose: say (green "PASS") + if %verbose: + say (green "PASS") ..else: say "\r[\(green "PASS")" -- cgit v1.2.3