summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/lang-with-region.pngbin0 -> 1389 bytes
-rw-r--r--tests/typ/text/lang-with-region.typ16
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/text/lang-with-region.png b/tests/ref/text/lang-with-region.png
new file mode 100644
index 00000000..097f105d
--- /dev/null
+++ b/tests/ref/text/lang-with-region.png
Binary files differ
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()