summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/directives.pov15
-rwxr-xr-xtests/dimension/directives.sh28
2 files changed, 41 insertions, 2 deletions
diff --git a/tests/dimension/directives.pov b/tests/dimension/directives.pov
index e4721fc..634c2e9 100644
--- a/tests/dimension/directives.pov
+++ b/tests/dimension/directives.pov
@@ -63,3 +63,18 @@
Inc(Counter)
#end
+
+#declare Box =
+ box {
+ <-1, -1, -1>, <1, 1, 1>
+ pigment {
+ color rgb <1, 1, 1>
+ }
+ }
+
+object {
+ Box
+ finish {
+ phong 0.2
+ }
+}
diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh
index 713a1fe..1e487c4 100755
--- a/tests/dimension/directives.sh
+++ b/tests/dimension/directives.sh
@@ -54,7 +54,23 @@ directives_exp="$(echo -n \
(identifier "Make_Sphere") \( (identifier "Counter") \)
#end
(identifier "Inc") \( (identifier "Counter") \)
- #end)' \
+ #end
+
+ #declare (identifier "Box") =
+ box {
+ < - (integer "1") , - (integer "1") , - (integer "1") > ,
+ < (integer "1") , (integer "1") , (integer "1") >
+ pigment {
+ color rgb < (integer "1") , (integer "1") , (integer "1") >
+ }
+ }
+
+ object {
+ (identifier "Box")
+ finish {
+ phong (float "0.2")
+ }
+ })' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
$(echo -n \
'((sphere
@@ -68,7 +84,15 @@ $(echo -n \
(integer 1)
(object-modifiers
(pigment (vector (integer 1) (integer 1) (integer 1)
- (integer 0) (integer 0))))))' \
+ (integer 0) (integer 0)))))
+ (box
+ (vector (integer -1) (integer -1) (integer -1) (integer 0) (integer 0))
+ (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
+ (object-modifiers
+ (pigment (vector (integer 1) (integer 1) (integer 1)
+ (integer 0) (integer 0)))
+ (finish
+ (phong (float 0.2))))))' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')"
if [ "$directives" != "$directives_exp" ]; then