summaryrefslogtreecommitdiffstats
path: root/tests/dimension/arithexp.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-19 10:32:41 -0400
committerTavian Barnes <tavianator@gmail.com>2010-06-19 10:36:02 -0400
commitdb09a6bc5bb5da674abf7b5f8874a57ef2cf4dfb (patch)
tree3ab3c42bbc872f701708cb855a9b9d954b54f9c5 /tests/dimension/arithexp.sh
parentc8667ce6ae94929e9bc06c9af51b6589bc528946 (diff)
downloaddimension-db09a6bc5bb5da674abf7b5f8874a57ef2cf4dfb.tar.xz
Abstract syntax tree improvements.
Keep objects in a single DMNSN_AST_OBJECT node type.
Diffstat (limited to 'tests/dimension/arithexp.sh')
-rwxr-xr-xtests/dimension/arithexp.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/dimension/arithexp.sh b/tests/dimension/arithexp.sh
index 014da06..917f6bc 100755
--- a/tests/dimension/arithexp.sh
+++ b/tests/dimension/arithexp.sh
@@ -21,10 +21,11 @@
arithexp=$(${top_builddir}/dimension/dimension --parse ${srcdir}/arithexp.pov)
arithexp_exp="$(echo -n \
-'((sphere
- (vector (float 2) (float 2) (float 3) (integer 0) (integer 0))
- (float 0.718282)
- object-modifiers))' \
+'((object
+ (sphere
+ (vector (float 2) (float 2) (float 3) (integer 0) (integer 0))
+ (float 0.718282))
+ object-modifiers))' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')"
if [ "$arithexp" != "$arithexp_exp" ]; then