summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-19 12:48:38 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-19 12:48:38 -0400
commitc01e193e19d45e2c5b1e86928cedc11cdbdda476 (patch)
tree5233fa6d70c2a79022e19b1fffa13b2c5ce5c678 /tests
parent8977b20f170a23bb917a0f09b4c558ad8bbdb0ab (diff)
downloaddimension-c01e193e19d45e2c5b1e86928cedc11cdbdda476.tar.xz
Support exp().
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/arithexp.pov2
-rwxr-xr-xtests/dimension/arithexp.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/dimension/arithexp.pov b/tests/dimension/arithexp.pov
index b8d700b..5e27612 100644
--- a/tests/dimension/arithexp.pov
+++ b/tests/dimension/arithexp.pov
@@ -21,5 +21,5 @@
sphere {
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
+ exp(1) - 1*2
}
diff --git a/tests/dimension/arithexp.sh b/tests/dimension/arithexp.sh
index 5fd24f2..6572646 100755
--- a/tests/dimension/arithexp.sh
+++ b/tests/dimension/arithexp.sh
@@ -28,13 +28,13 @@ arithexp_exp="$(echo -n \
(float "1.0") + (integer "2") * (integer "2") - (integer "4") >
-
- < (integer "0") , (integer "0") , (integer "1") > ,
- (float "2.25") - (integer "1") * (integer "2")
+ exp \( (integer "1") \) - (integer "1") * (integer "2")
})' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
$(echo -n \
'((sphere
(vector (float 2) (float 2) (float 3) (integer 0) (integer 0))
- (float 0.25)
+ (float 0.718282)
object-modifiers))' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')"