summaryrefslogtreecommitdiff
path: root/tests/run-tests.sh
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-04-30 14:06:58 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-04-30 14:06:58 -0400
commitc625ed1cfe7f7ea4ab2a75a8a0a6a6772f86431c (patch)
tree55aab8a27a6cd3b0a979002afa6899a4bda94b74 /tests/run-tests.sh
parent60f7c4f7272079e635010e464d8ce3a3a427f97f (diff)
Destroy my own code by using goto
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-xtests/run-tests.sh18
1 files changed, 6 insertions, 12 deletions
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