summaryrefslogtreecommitdiff
path: root/tests/typ/code/spread.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-01 13:07:11 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-02 10:39:45 +0100
commit072e7c710c763904ad3ee72cfb05252f9f0d3929 (patch)
treedd2ffa3f4a086ef823a9a0776dddeda5777c7b14 /tests/typ/code/spread.typ
parent8ccb7d6f15a2fbb44247c143b3dd821e44e0d6eb (diff)
Reduce namespace pollution
Diffstat (limited to 'tests/typ/code/spread.typ')
-rw-r--r--tests/typ/code/spread.typ10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/code/spread.typ b/tests/typ/code/spread.typ
index 4e7e0ad8..8a9491d0 100644
--- a/tests/typ/code/spread.typ
+++ b/tests/typ/code/spread.typ
@@ -4,14 +4,14 @@
---
// Test standard argument overriding.
{
- let font(style: normal, weight: regular) = {
- "(style: " + repr(style) + ", weight: " + repr(weight) + ")"
+ let font(style: "normal", weight: "regular") = {
+ "(style: " + style + ", weight: " + weight + ")"
}
- let myfont(..args) = font(weight: bold, ..args)
+ let myfont(..args) = font(weight: "bold", ..args)
test(myfont(), "(style: normal, weight: bold)")
- test(myfont(weight: 100), "(style: normal, weight: 100)")
- test(myfont(style: italic), "(style: italic, weight: bold)")
+ test(myfont(weight: "black"), "(style: normal, weight: black)")
+ test(myfont(style: "italic"), "(style: italic, weight: bold)")
}
---