From c625ed1cfe7f7ea4ab2a75a8a0a6a6772f86431c Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 30 Apr 2021 14:06:58 -0400 Subject: Destroy my own code by using goto --- tests/run-tests.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 2443823..6cebbe7 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -2,17 +2,11 @@ PARSECMD=../build/parse PARSEFILE=" " parse () { - $PARSECMD -in $PARSEFILE-test.tnsl -out $PARSEFILE-test.tnt + $PARSECMD -in $1-test.tnsl -out $1-test.tnt } -PARSEFILE=block -parse - -PARSEFILE=comment -parse - -PARSEFILE=literal -parse - -PARSEFILE=parameter -parse \ No newline at end of file +parse block +parse comment +parse literal +parse parameter +parse statement \ No newline at end of file -- cgit v1.2.3