From 9335c34a93f66318c5d4aaaca4b11595d349421d Mon Sep 17 00:00:00 2001 From: tavianator Date: Wed, 28 Oct 2009 12:12:05 -0400 Subject: Add a vector to numeric tokenizer test. --- tests/dimension/numeric.pov | 3 +++ tests/dimension/tokenizer.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3