summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-30 21:27:32 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-30 21:29:03 +0100
commit0ef1b02ee04a5abbe05d047a46e5de33554b1410 (patch)
tree8df1481382b1944a5062ce9d5ea02be34f846272 /tests/typ
parent53844b5a879fa95a605522e5a6542ab70d4b66f4 (diff)
Add calc constants
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compute/calc.typ4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ
index 195e3285..67579493 100644
--- a/tests/typ/compute/calc.typ
+++ b/tests/typ/compute/calc.typ
@@ -13,6 +13,10 @@
#test(type(float(10)), "float")
---
+#test(calc.round(calc.e, digits: 2), 2.72)
+#test(calc.round(calc.pi, digits: 2), 3.14)
+
+---
// Error: 6-10 expected boolean, integer, float, or string, found length
#int(10pt)