summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-29 21:50:58 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-29 21:50:58 -0400
commit7c414dea9bb4c65d6a0e4426a0d6ac172500f4b6 (patch)
tree177a1105a14f8125c3e6e532e589ee00b02b444a /tests/dimension
parent6ecfb43aace8231d5fcb1499c286ddedec19577a (diff)
downloaddimension-7c414dea9bb4c65d6a0e4426a0d6ac172500f4b6.tar.xz
Correctly tokenize <=, >= and !=.
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/punctuation.pov10
-rwxr-xr-xtests/dimension/punctuation.sh2
2 files changed, 2 insertions, 10 deletions
diff --git a/tests/dimension/punctuation.pov b/tests/dimension/punctuation.pov
index a691693..9e8a906 100644
--- a/tests/dimension/punctuation.pov
+++ b/tests/dimension/punctuation.pov
@@ -19,12 +19,4 @@
// Test that we correctly tokenize all simple punctuation marks
-{
- (
- [
- <
- + - * / ,
- >
- ]
- )
-}
+{}()[]+-*/,;?:&.|=<>!<= >= !=
diff --git a/tests/dimension/punctuation.sh b/tests/dimension/punctuation.sh
index 5364670..3765ffa 100755
--- a/tests/dimension/punctuation.sh
+++ b/tests/dimension/punctuation.sh
@@ -20,7 +20,7 @@
#########################################################################
punctuation=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/punctuation.pov)
-punctuation_exp='({ \( [ < + - * / , > ] \) })'
+punctuation_exp='({ } \( \) [ ] + - * / , ; ? : & . | = < > ! <= >= !=)'
if [ "$punctuation" != "$punctuation_exp" ]; then
echo "punctuation.pov tokenized as \"$punctuation\"" >&2