diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-28 02:32:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-28 02:32:45 -0400 |
commit | 9fe396b0148e02114a4a70273df078e08868141c (patch) | |
tree | 4f551487d46e3ee99228d6c06aa609a609da831d /tests/dimension/tokenizer.sh | |
parent | 61d8844371d8f0d61432ec1ef91381e7d17e897f (diff) | |
download | dimension-9fe396b0148e02114a4a70273df078e08868141c.tar.xz |
Tokenize keywords.
Diffstat (limited to 'tests/dimension/tokenizer.sh')
-rwxr-xr-x | tests/dimension/tokenizer.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/dimension/tokenizer.sh b/tests/dimension/tokenizer.sh index 5f126ce..e23e281 100755 --- a/tests/dimension/tokenizer.sh +++ b/tests/dimension/tokenizer.sh @@ -39,4 +39,13 @@ if [ "$numeric" != "$numeric_exp" ]; then exitstatus=1 fi -exit $exitstatus
\ No newline at end of file +labels=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/labels.pov) +labels_exp='(camera { } sphere { color (identifier "new_identifier") } box { color (identifier "new_identifier") })'; + +if [ "$labels" != "$labels_exp" ]; then + echo "labels.pov tokenized as \"$labels\"" >&2 + echo " -- expected \"$labels_exp\"" >&2 + exitstatus=1 +fi + +exit $exitstatus |