summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-24 22:21:24 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-24 22:21:24 -0500
commit819af91b95033ed34d07c0a973ad722bcaf20735 (patch)
tree7617d4b8c1760100743bf7d932ef779dba796735 /tests
parentf1b92556c2189b5b5dbd5d81d966f2d2a8e9b2ab (diff)
downloaddimension-819af91b95033ed34d07c0a973ad722bcaf20735.tar.xz
Support vector component extraction.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/arithexp.pov2
-rwxr-xr-xtests/dimension/arithexp.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/dimension/arithexp.pov b/tests/dimension/arithexp.pov
index 5b458e7..5d0e8fb 100644
--- a/tests/dimension/arithexp.pov
+++ b/tests/dimension/arithexp.pov
@@ -20,5 +20,5 @@
// Render demo scene
sphere {
- <1.0, (1.0 + 2)*2 - 5, 1.0 + 2*2 - 4> - -<0, 0, 1>, 2.25 - 1*2
+ <<2.0 - 1.0, 3.0, 4.0>.x, (1.0 + 2)*2 - 5, 1.0 + 2*2 - 4> - -<0, 0, 1>, 2.25 - 1*2
}
diff --git a/tests/dimension/arithexp.sh b/tests/dimension/arithexp.sh
index 4d89387..12e3432 100755
--- a/tests/dimension/arithexp.sh
+++ b/tests/dimension/arithexp.sh
@@ -20,7 +20,7 @@
#########################################################################
arithexp=$(${top_builddir}/dimension/dimension --tokenize --parse ${srcdir}/arithexp.pov)
-arithexp_exp='(sphere { < (float "1.0") , \( (float "1.0") + (integer "2") \) * (integer "2") - (integer "5") , (float "1.0") + (integer "2") * (integer "2") - (integer "4") > - - < (integer "0") , (integer "0") , (integer "1") > , (float "2.25") - (integer "1") * (integer "2") })
+arithexp_exp='(sphere { < < (float "2.0") - (float "1.0") , (float "3.0") , (float "4.0") > . x , \( (float "1.0") + (integer "2") \) * (integer "2") - (integer "5") , (float "1.0") + (integer "2") * (integer "2") - (integer "4") > - - < (integer "0") , (integer "0") , (integer "1") > , (float "2.25") - (integer "1") * (integer "2") })
((sphere (vector (float 0) (float 0) (float 0) (integer 0) (integer 0)) (float 0.25)))'
if [ "$arithexp" != "$arithexp_exp" ]; then