summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortavianator <tavianator@antimatter.localdomain>2009-10-28 12:12:05 -0400
committertavianator <tavianator@antimatter.localdomain>2009-10-28 12:12:05 -0400
commit9335c34a93f66318c5d4aaaca4b11595d349421d (patch)
tree253f8f8c85f87a6c21dde38a49b8b17f25c6a3e2 /tests
parent9fe396b0148e02114a4a70273df078e08868141c (diff)
downloaddimension-9335c34a93f66318c5d4aaaca4b11595d349421d.tar.xz
Add a vector to numeric tokenizer test.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/numeric.pov3
-rwxr-xr-xtests/dimension/tokenizer.sh2
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