summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension')
-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