summaryrefslogtreecommitdiff
path: root/tests/typ/code/spread.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-26 17:14:44 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-26 17:14:44 +0200
commit806d9f0d9ab381500318f3e106b9c20c5eabccb7 (patch)
tree7466967220be358c4fd8c5e26f0c3ca501fafa97 /tests/typ/code/spread.typ
parent22214a1e0a79666caefd486e41828f015878ecb0 (diff)
Pure functions!
Diffstat (limited to 'tests/typ/code/spread.typ')
-rw-r--r--tests/typ/code/spread.typ10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/typ/code/spread.typ b/tests/typ/code/spread.typ
index 86dbfd98..ff661ead 100644
--- a/tests/typ/code/spread.typ
+++ b/tests/typ/code/spread.typ
@@ -23,16 +23,14 @@
}
---
-// Test storing arguments in a variable.
+// Test doing things with arguments.
{
- let args
- let save(..sink) = {
- args = sink
+ let save(..args) = {
+ test(type(args), "arguments")
+ test(repr(args), "(1, 2, three: true)")
}
save(1, 2, three: true)
- test(type(args), "arguments")
- test(repr(args), "(1, 2, three: true)")
}
---