summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compute/calc.typ4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ
index 3a1e85f3..cd97dfab 100644
--- a/tests/typ/compute/calc.typ
+++ b/tests/typ/compute/calc.typ
@@ -94,9 +94,11 @@
#test(calc.min("hi"), "hi")
---
-// Test the `calc` function.
+// Test the `pow`, `log`, `exp`, and `ln` functions.
#test(calc.pow(10, 0), 1)
#test(calc.pow(2, 4), 16)
+#test(calc.exp(2), calc.pow(calc.e, 2))
+#test(calc.ln(10), calc.log(10, base: calc.e))
---
// Error: 10-16 zero to the power of zero is undefined