From bb71a70253ae5bf91e99dcd2809471abebea1b69 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 22 Mar 2010 13:19:45 -0400 Subject: Support logical ! operator. --- tests/dimension/directives.pov | 2 +- tests/dimension/directives.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/dimension') diff --git a/tests/dimension/directives.pov b/tests/dimension/directives.pov index 5137cd2..416bbf5 100644 --- a/tests/dimension/directives.pov +++ b/tests/dimension/directives.pov @@ -42,7 +42,7 @@ #declare Counter = 0; #while (Counter < 2) - #if (#if (1 = 1) 0 #end = 0 & 0) + #if (#if (1 = 1) 0 #end = 0 & !1) #error "Nested #if parsing failed" #else sphere { diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh index 74bde02..42815a6 100755 --- a/tests/dimension/directives.sh +++ b/tests/dimension/directives.sh @@ -37,7 +37,7 @@ directives_exp="$(echo -n \ #end #declare (identifier "Counter") = (integer "0") ; #while \( (identifier "Counter") < (integer "2") \) - #if \( #if \( (integer "1") = (integer "1") \) (integer "0") #end = (integer "0") & (integer "0") \) + #if \( #if \( (integer "1") = (integer "1") \) (integer "0") #end = (integer "0") & ! (integer "1") \) #error (string "Nested #if parsing failed") #else sphere { -- cgit v1.2.3