diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 12:03:26 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 12:03:26 -0500 |
commit | 3da1fe6d2fb07f3f361482d8056e36636dcec3f5 (patch) | |
tree | 54ee1eaf680f7a97820f4a150f7d9679f3345d8b /tests/dimension/directives.sh | |
parent | c1f6c955de83cf35fb34cc1fcf9a276bf6dbd7c8 (diff) | |
download | dimension-3da1fe6d2fb07f3f361482d8056e36636dcec3f5.tar.xz |
Implement #if.
Diffstat (limited to 'tests/dimension/directives.sh')
-rwxr-xr-x | tests/dimension/directives.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh index b2c9e9e..955ea15 100755 --- a/tests/dimension/directives.sh +++ b/tests/dimension/directives.sh @@ -26,12 +26,16 @@ directives_exp="$(echo -n \ #local (identifier "Color") = rgb < (integer "1") , (integer "0") , (integer "1") > ; #declare (identifier "Unused") = - (integer "1") ; #undef (identifier "Unused") - sphere { - (identifier "Center") , (identifier "R") - pigment { - color (identifier "Color") green (integer "1") + #if \( #if \( (integer "1") = (integer "1") \) (integer "0") #end = (integer "0") & (integer "0") \) + (identifier "Illegal") + #else + sphere { + (identifier "Center") , (identifier "R") + pigment { + color (identifier "Color") green (integer "1") + } } - })' \ + #end)' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g') $(echo -n \ '((sphere |