summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-08 10:43:03 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-08 10:44:24 +0100
commit1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (patch)
tree682124c2343db9491c84bddbdca026c676f220c6 /tests/typ/compiler
parent25b5bd117529cd04bb789e1988eb3a3db8025a0e (diff)
Require font to be a named argument
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/break-continue.typ2
-rw-r--r--tests/typ/compiler/call.typ4
-rw-r--r--tests/typ/compiler/shorthand.typ4
-rw-r--r--tests/typ/compiler/show-text.typ4
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/typ/compiler/break-continue.typ b/tests/typ/compiler/break-continue.typ
index d4bd01e3..f6245007 100644
--- a/tests/typ/compiler/break-continue.typ
+++ b/tests/typ/compiler/break-continue.typ
@@ -115,7 +115,7 @@
// Should output `Some` in red, `Some` in blue and `Last` in green.
// Everything should be in smallcaps.
#for color in (red, blue, green, yellow) [
- #set text("Roboto")
+ #set text(font: "Roboto")
#show: it => text(fill: color, it)
#smallcaps(if color != green [
Some
diff --git a/tests/typ/compiler/call.typ b/tests/typ/compiler/call.typ
index 86db55e0..32a54cd4 100644
--- a/tests/typ/compiler/call.typ
+++ b/tests/typ/compiler/call.typ
@@ -44,8 +44,8 @@
}
---
-// Error: 28-34 duplicate argument
-#set text(family: "Arial", family: "Helvetica")
+// Error: 26-30 duplicate argument
+#set text(font: "Arial", font: "Helvetica")
---
// Error: 2-6 expected function, found boolean
diff --git a/tests/typ/compiler/shorthand.typ b/tests/typ/compiler/shorthand.typ
index 6df5e340..c8a10851 100644
--- a/tests/typ/compiler/shorthand.typ
+++ b/tests/typ/compiler/shorthand.typ
@@ -7,7 +7,7 @@ The non-breaking~space does work.
// Make sure non-breaking and normal space always
// have the same width. Even if the font decided
// differently.
-#set text("New Computer Modern")
+#set text(font: "New Computer Modern")
a b \
a~b
@@ -16,5 +16,5 @@ a~b
- Em dash: ---
---
-#set text("Roboto")
+#set text(font: "Roboto")
A... vs #"A..."
diff --git a/tests/typ/compiler/show-text.typ b/tests/typ/compiler/show-text.typ
index b175c17d..0f978563 100644
--- a/tests/typ/compiler/show-text.typ
+++ b/tests/typ/compiler/show-text.typ
@@ -2,14 +2,14 @@
---
// Test classic example.
-#set text("Roboto")
+#set text(font: "Roboto")
#show "Der Spiegel": smallcaps
Die Zeitung Der Spiegel existiert.
---
// Another classic example.
#show "TeX": [T#h(-0.145em)#box(move(dy: 0.233em)[E])#h(-0.135em)X]
-#show regex("(Lua)?(La)?TeX"): name => box(text("New Computer Modern")[#name])
+#show regex("(Lua)?(La)?TeX"): name => box(text(font: "New Computer Modern")[#name])
TeX, LaTeX, LuaTeX and LuaLaTeX!