From 2ac50103672df10af130d3b1003980f087bc17dd Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 4 Jul 2018 21:08:05 +0100 Subject: Add nondeterminism. Add the ability to specify non-deterministic TMs. Listing multiple outcomes for a particular state-input combo will create a non-deterministic split instead of using only the latest one in the list. Deterministic TMs should use a `.dtm` suffix, and non-deterministic TMs should use `.ntm`. TMs with the extension `.tm` will be assumed to be non-deterministic for compatability. --- tests/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test.sh b/tests/test.sh index b16f4fc..672ff01 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -7,8 +7,8 @@ for file in `ls -1 $1` ; do if [ -e "$1/$file/testgen.sh" ] ; then "$1/$file/testgen.sh" 50 | while read line ; do split=($line) - echo ./tmachines $1/$file/$file.tm $line - test "./tmachines --quiet $1/$file/$file.tm ${split[0]}" ${split[1]} + echo ./tmachines $1/$file/$file'.*tm' $line + test "./tmachines --quiet $1/$file/$file"'.*tm'" ${split[0]}" ${split[1]} done fi done -- cgit v1.2.1