summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorpan93412 <pan93412@gmail.com>2023-04-26 17:30:03 +0800
committerGitHub <noreply@github.com>2023-04-26 11:30:03 +0200
commita6df909a8d8018ef87b66b2128c6acfa9fb0599c (patch)
treeec1717715dac6944543e13df8b54fef3a3eae038 /tests/typ/text
parent1d42d6674c5bbeca2be1ca9a35dccd71b9346228 (diff)
Allow passing `region` to LocalName (#926)
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/lang-with-region.typ16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/typ/text/lang-with-region.typ b/tests/typ/text/lang-with-region.typ
new file mode 100644
index 00000000..344ca8d2
--- /dev/null
+++ b/tests/typ/text/lang-with-region.typ
@@ -0,0 +1,16 @@
+// Test if text with region works
+
+---
+// without any region
+#set text(lang: "zh")
+#outline()
+
+---
+// with unknown region configured
+#set text(lang: "zh", region: "XX")
+#outline()
+
+---
+// with region configured
+#set text(lang: "zh", region: "TW")
+#outline()