summaryrefslogtreecommitdiffstats
path: root/tests/dimension/arithexp.pov
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-20 02:01:16 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-20 02:01:16 -0400
commit4566f4e34afaab1c47120e8a377859d88a142ffe (patch)
tree626541ad48efe078a4e6f86cf1af903d8225320b /tests/dimension/arithexp.pov
parentfc06cb624d79788923ab2dedb3cd2ccab53cb2b4 (diff)
downloaddimension-4566f4e34afaab1c47120e8a377859d88a142ffe.tar.xz
A bunch more float functions.
Diffstat (limited to 'tests/dimension/arithexp.pov')
-rw-r--r--tests/dimension/arithexp.pov64
1 files changed, 64 insertions, 0 deletions
diff --git a/tests/dimension/arithexp.pov b/tests/dimension/arithexp.pov
index 5e27612..0411e19 100644
--- a/tests/dimension/arithexp.pov
+++ b/tests/dimension/arithexp.pov
@@ -23,3 +23,67 @@ sphere {
2*<<2.0 - 1.0, 3.0, 4.0>.x, (1.0 + 2)*2 - 5, 1.0 + 2*2 - 4> - -<0, 0, 1>,
exp(1) - 1*2
}
+
+#if (abs(-1) != 1)
+ #error "abs"
+#end
+
+#if (acos(0) != 1.570796326794897)
+ #error "acos"
+#end
+
+#if (acosh(2) != 1.316957896924817)
+ #error "acosh"
+#end
+
+#if (asc("ABC") != 65)
+ #error "asc"
+#end
+
+#if (asin(1) != 1.570796326794897)
+ #error "asin"
+#end
+
+#if (asinh(2) != 1.44363547517881)
+ #error "asinh"
+#end
+
+#if (atan(1) != 0.7853981633974483)
+ #error "atan"
+#end
+
+#if (atan2(-1, -1) != -2.35619449019234)
+ #error "atan2"
+#end
+
+#if (atanh(0.5) != 0.5493061443340548)
+ #error "atanh"
+#end
+
+#if (ceil(-1.5) != -1)
+ #error "ceil"
+#end
+
+#if (cos(1.570796326794897) != 0)
+ #error "cos"
+#end
+
+#if (cosh(1.316957896924817) != 2)
+ #error "cosh"
+#end
+
+#if (degrees(1.570796326794897) != 90)
+ #error "degrees"
+#end
+
+#if (div(3,2) != 1)
+ #error "div"
+#end
+
+#if (exp(1) != 2.718281828459045)
+ #error "exp"
+#end
+
+#if (floor(-1.5) != -2)
+ #error "floor"
+#end