From a89d69e843ba83df928051005d02a932a9981f46 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Nov 2018 17:37:37 -0800 Subject: Autoformatted/auto-upgraded. --- tools/test.nom | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tools/test.nom') diff --git a/tools/test.nom b/tools/test.nom index 32c9b7a..bdbec54 100755 --- a/tools/test.nom +++ b/tools/test.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V4.10.12.7 +#!/usr/bin/env nomsu -V4.11.12.8 # 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 ... @@ -17,11 +17,13 @@ if (%args.1 == "-v"): : for %path in (command line args): for %filename in (files for %path): - if (%filename == "-"): %filename = "stdin" - if ((%filename::matches "%.nom$") or (%filename == "stdin")): - add %filename + if (%filename == "-"): + %filename = "stdin" + if ((%filename::matches "%.nom$") or (%filename == "stdin")): add %filename + # Make sure all the files get run -for %filename in %to_run: use %filename +for %filename in %to_run: + use %filename %tests = {: for %s = %t in (tests): add (=lua "Source:from_string(\%s)") = %t} for %filename in %to_run: %file_tests = [] -- cgit v1.2.3