summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-20 15:55:52 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-20 15:55:52 -0400
commitac3e97014885af00b5a2eb01df232221482db023 (patch)
tree39163e9eed2427580260d0097b1c7887bcc536a5 /tests
parent5da32d0dce6b8ade0b636b83f67b6244e6a56494 (diff)
downloaddimension-ac3e97014885af00b5a2eb01df232221482db023.tar.xz
Support max() and min().
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/arithexp.pov8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dimension/arithexp.pov b/tests/dimension/arithexp.pov
index c891b1c..d25be7d 100644
--- a/tests/dimension/arithexp.pov
+++ b/tests/dimension/arithexp.pov
@@ -100,6 +100,14 @@ sphere {
#error "log"
#end
+#if (max(-1.5, 0, 1) != 1)
+ #error "max"
+#end
+
+#if (min(-1.5, 0, 1) != -1.5)
+ #error "min"
+#end
+
#if (mod(3.5, 2) != 1.5)
#error "mod"
#end