aboutsummaryrefslogtreecommitdiff
path: root/tests/math.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-27 18:28:23 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-27 18:29:23 -0700
commit2e15c0fd5067318601e2f3b70ee6fc16ef58200d (patch)
tree0006e0825b2680d457bb531c3d079661b16d6bc8 /tests/math.nom
parent6ce32bdd25694d71dc232c50a008f8824f8a75ce (diff)
Some tweaks/cleanup on the nomsu code as well as adding variable
mangling to 'parse % as %' to make almost hygienic macros.
Diffstat (limited to 'tests/math.nom')
-rw-r--r--tests/math.nom2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/math.nom b/tests/math.nom
index 4232d81..8cfd0f4 100644
--- a/tests/math.nom
+++ b/tests/math.nom
@@ -15,5 +15,7 @@ assume
..or barf "math functions failed"
assume ((463 to the nearest 100) = 500) or barf "rounding failed"
assume ((2.6 to the nearest 0.25) = 2.5) or barf "rounding failed"
+assume ((min of [3,-4,1,2] by % = (%*%)) = 1)
+assume ((max of [3,-4,1,2] by % = (%*%)) = -4)
say "Math test passed"