summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-18 19:27:31 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-18 19:27:31 +0100
commita69b5874558eb50c96293813cbe67aac38174644 (patch)
treec59e671a4f73b467fc1f7f4de1d01ed6cfe24afe /tests/typ/compiler
parenta16726ae6652a795ff24f368ca25f93bae673366 (diff)
Rename formula to equation
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/content-field.typ6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/typ/compiler/content-field.typ b/tests/typ/compiler/content-field.typ
index 0eeee458..b67c090d 100644
--- a/tests/typ/compiler/content-field.typ
+++ b/tests/typ/compiler/content-field.typ
@@ -1,6 +1,6 @@
// Integrated test for content fields.
-#let compute(formula, ..vars) = {
+#let compute(equation, ..vars) = {
let vars = vars.named()
let f(node) = {
let func = node.func()
@@ -28,14 +28,14 @@
.fold(0, (sum, v) => sum + v)
}
}
- let result = f(formula.body)
+ let result = f(equation.body)
[With ]
vars
.pairs()
.map(p => $#p.first() = #p.last()$)
.join(", ", last: " and ")
[ we have:]
- $ formula = result $
+ $ equation = result $
}
#compute($x y + y^2$, x: 2, y: 3)