summaryrefslogtreecommitdiffstats
path: root/tests/dimension/tokenizer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension/tokenizer.sh')
-rwxr-xr-xtests/dimension/tokenizer.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dimension/tokenizer.sh b/tests/dimension/tokenizer.sh
new file mode 100755
index 0000000..35bcf65
--- /dev/null
+++ b/tests/dimension/tokenizer.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+braces=$(${TOP_BUILDDIR}/dimension/dimension --tokenize braces.pov)
+braces_exp='({ { } } } } { {)'
+
+if [ "$braces" != "$braces_exp" ]; then
+ echo "braces.pov tokenized as \"$braces\"" >&2
+ echo " -- expected \"$braces_exp\"" >&2
+ exit 1;
+fi