From ac591cc542f039af8f66567439fbb0aee3d93963 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 22 Mar 2010 13:20:56 -0400 Subject: Add built-in float constants. --- tests/dimension/arithexp.pov | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/dimension/arithexp.pov b/tests/dimension/arithexp.pov index d25be7d..30281e5 100644 --- a/tests/dimension/arithexp.pov +++ b/tests/dimension/arithexp.pov @@ -24,6 +24,8 @@ sphere { exp(1) - 1*2 } +/* Float functions */ + #if (abs(-1) != 1) #error "abs" #end @@ -167,3 +169,17 @@ sphere { #if (vlength(1) != 1.732050807568877) #error "vlength" #end + +/* Float built-in IDs */ + +#if (pi != 3.141592653589793) + #error "pi" +#end + +#if (!true | !yes | !on) + #error "true" +#end + +#if (false | no | off) + #error "false" +#end -- cgit v1.2.3