diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-03-22 13:20:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-03-22 13:20:56 -0400 |
commit | ac591cc542f039af8f66567439fbb0aee3d93963 (patch) | |
tree | 470c4277bf3b4bfafdd2b37aae064ee9ea53f77c /tests | |
parent | bb71a70253ae5bf91e99dcd2809471abebea1b69 (diff) | |
download | dimension-ac591cc542f039af8f66567439fbb0aee3d93963.tar.xz |
Add built-in float constants.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dimension/arithexp.pov | 16 |
1 files changed, 16 insertions, 0 deletions
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 |