diff options
author | tavianator <tavianator@antimatter.localdomain> | 2009-10-28 12:12:05 -0400 |
---|---|---|
committer | tavianator <tavianator@antimatter.localdomain> | 2009-10-28 12:12:05 -0400 |
commit | 9335c34a93f66318c5d4aaaca4b11595d349421d (patch) | |
tree | 253f8f8c85f87a6c21dde38a49b8b17f25c6a3e2 /tests/dimension | |
parent | 9fe396b0148e02114a4a70273df078e08868141c (diff) | |
download | dimension-9335c34a93f66318c5d4aaaca4b11595d349421d.tar.xz |
Add a vector to numeric tokenizer test.
Diffstat (limited to 'tests/dimension')
-rw-r--r-- | tests/dimension/numeric.pov | 3 | ||||
-rwxr-xr-x | tests/dimension/tokenizer.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/dimension/numeric.pov b/tests/dimension/numeric.pov index e9d0eae..c15550d 100644 --- a/tests/dimension/numeric.pov +++ b/tests/dimension/numeric.pov @@ -25,3 +25,6 @@ // Floats: .1 0.1 1.0 0.123456789 -0.123456789 + +// A vector: +<1, 2.2, -3.03> diff --git a/tests/dimension/tokenizer.sh b/tests/dimension/tokenizer.sh index e23e281..6d67da3 100755 --- a/tests/dimension/tokenizer.sh +++ b/tests/dimension/tokenizer.sh @@ -31,7 +31,7 @@ if [ "$punctuation" != "$punctuation_exp" ]; then fi numeric=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/numeric.pov) -numeric_exp='((int "1") (int "123456789") (int "01234567") (int "0x123456789") - (int "0x01") (float ".1") (float "0.1") (float "1.0") (float "0.123456789") - (float "0.123456789"))' +numeric_exp='((int "1") (int "123456789") (int "01234567") (int "0x123456789") - (int "0x01") (float ".1") (float "0.1") (float "1.0") (float "0.123456789") - (float "0.123456789") < (int "1") , (float "2.2") , - (float "3.03") >)' if [ "$numeric" != "$numeric_exp" ]; then echo "numeric.pov tokenized as \"$numeric\"" >&2 |