summaryrefslogtreecommitdiff
path: root/tests/typ/text/lang.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/text/lang.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/text/lang.typ')
-rw-r--r--tests/typ/text/lang.typ59
1 files changed, 0 insertions, 59 deletions
diff --git a/tests/typ/text/lang.typ b/tests/typ/text/lang.typ
deleted file mode 100644
index 7f1ae1fc..00000000
--- a/tests/typ/text/lang.typ
+++ /dev/null
@@ -1,59 +0,0 @@
-// Test setting the document language.
-
----
-// Ensure that setting the language does have effects.
-#set text(hyphenate: true)
-#grid(
- columns: 2 * (20pt,),
- gutter: 1fr,
- text(lang: "en")["Eingabeaufforderung"],
- text(lang: "de")["Eingabeaufforderung"],
-)
-
----
-// Test that the language passed to the shaper has an effect.
-#set text(font: "Ubuntu")
-
-// Some lowercase letters are different in Serbian Cyrillic compared to other
-// Cyrillic languages. Since there is only one set of Unicode codepoints for
-// Cyrillic, these can only be seen when setting the language to Serbian and
-// selecting one of the few fonts that support these letterforms.
-Бб
-#text(lang: "uk")[Бб]
-#text(lang: "sr")[Бб]
-
----
-// Verify that writing script/language combination has an effect
-#{
- set text(size:20pt)
- set text(script: "latn", lang: "en")
- [Ş ]
- set text(script: "latn", lang: "ro")
- [Ş ]
- set text(script: "grek", lang: "ro")
- [Ş ]
-}
-
----
-// Error: 19-23 expected string or auto, found none
-#set text(script: none)
-
----
-// Error: 19-23 expected three or four letter script code (ISO 15924 or 'math')
-#set text(script: "ab")
-
----
-// Error: 17-21 expected string, found none
-#set text(lang: none)
-
----
-// Error: 17-20 expected two or three letter language code (ISO 639-1/2/3)
-#set text(lang: "ӛ")
-
----
-// Error: 17-20 expected two or three letter language code (ISO 639-1/2/3)
-#set text(lang: "😃")
-
----
-// Error: 19-24 expected two letter region code (ISO 3166-1 alpha-2)
-#set text(region: "hey")