diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-29 21:50:58 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-29 21:50:58 -0400 |
commit | 7c414dea9bb4c65d6a0e4426a0d6ac172500f4b6 (patch) | |
tree | 177a1105a14f8125c3e6e532e589ee00b02b444a /tests | |
parent | 6ecfb43aace8231d5fcb1499c286ddedec19577a (diff) | |
download | dimension-7c414dea9bb4c65d6a0e4426a0d6ac172500f4b6.tar.xz |
Correctly tokenize <=, >= and !=.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dimension/punctuation.pov | 10 | ||||
-rwxr-xr-x | tests/dimension/punctuation.sh | 2 |
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 |