summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/demo.pov6
-rwxr-xr-xtests/dimension/demo.sh19
2 files changed, 22 insertions, 3 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index 453ebfc..5aa044e 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -22,8 +22,14 @@
box {
<-1, -1, -1>, <1, 1, 1>
rotate <45, 0, 0>
+ pigment {
+ color rgbft <0, 0, 1, 0.25, 0.25>
+ }
}
sphere {
<0, 0, 0>, 1.25
+ pigment {
+ color rgb <0, 1, 0>
+ }
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 0e0303a..ae65a9d 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -25,9 +25,16 @@ demo_exp="$(echo -n \
< - (integer "1") , - (integer "1") , - (integer "1") > ,
< (integer "1") , (integer "1") , (integer "1") >
rotate < (integer "45") , (integer "0") , (integer "0") >
+ pigment {
+ color rgbft < (integer "0") , (integer "0") , (integer "1") ,
+ (float "0.25") , (float "0.25") >
+ }
}
sphere {
< (integer "0") , (integer "0") , (integer "0") > , (float "1.25")
+ pigment {
+ color rgb < (integer "0") , (integer "1") , (integer "0") >
+ }
})' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
$(echo -n \
@@ -35,12 +42,18 @@ $(echo -n \
(vector (integer -1) (integer -1) (integer -1) (integer 0) (integer 0))
(vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
(object-modifiers
- (rotate (vector (integer 45) (integer 0) (integer 0) (integer 0)
- (integer 0)))))
+ (rotate (vector (integer 45) (integer 0) (integer 0)
+ (integer 0) (integer 0)))
+ (texture
+ (pigment (vector (integer 0) (integer 0) (integer 1)
+ (float 0.25) (float 0.25))))))
(sphere
(vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0))
(float 1.25)
- object-modifiers))' \
+ (object-modifiers
+ (texture
+ (pigment (vector (integer 0) (integer 1) (integer 0)
+ (integer 0) (integer 0)))))))' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')"
if [ "$demo" != "$demo_exp" ]; then