summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-22 13:20:56 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-22 13:20:56 -0400
commitac591cc542f039af8f66567439fbb0aee3d93963 (patch)
tree470c4277bf3b4bfafdd2b37aae064ee9ea53f77c /tests/dimension
parentbb71a70253ae5bf91e99dcd2809471abebea1b69 (diff)
downloaddimension-ac591cc542f039af8f66567439fbb0aee3d93963.tar.xz
Add built-in float constants.
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/arithexp.pov16
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