summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-14 00:07:46 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-14 00:07:46 -0500
commite261cff9bf8f4f42a769fecc5414d42b582dc9f7 (patch)
tree4d02139ee6e90c51d697c386517829d179bc698e /tests
parent1cde219bafb9bdbedd013851ab44109a2ad273b9 (diff)
downloaddimension-e261cff9bf8f4f42a769fecc5414d42b582dc9f7.tar.xz
Begin parsing finishes.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/demo.pov10
-rwxr-xr-xtests/dimension/demo.sh12
2 files changed, 16 insertions, 6 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index bb43573..c59148a 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -46,7 +46,13 @@ box {
sphere {
<0, 0, 0>, 1.25
- pigment {
- color rgb <0, 1, 0>
+ texture {
+ pigment {
+ color rgb <0, 1, 0>
+ }
+ finish {
+ phong 0.2
+ phong_size 40.0
+ }
}
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index c49e0ca..05225b6 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -42,15 +42,19 @@ demo_exp=$(echo -n \
(rotate (vector (integer 45) (integer 0) (integer 0)
(integer 0) (integer 0)))
(texture
- (pigment (color (integer 0) (integer 0) (integer 1)
- (float 0.25) (float 0.25))))))
+ (pigment
+ (color (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
(texture
- (pigment (color (integer 0) (integer 1) (integer 0)
- (integer 0) (integer 0)))))))' \
+ (pigment
+ (color (integer 0) (integer 1) (integer 0) (integer 0) (integer 0)))
+ (finish
+ (phong (float 0.2))
+ (phong_size (float 40)))))))' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
if [ "$demo" != "$demo_exp" ]; then