diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compiler/string.typ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ index 4241361a..b0708979 100644 --- a/tests/typ/compiler/string.typ +++ b/tests/typ/compiler/string.typ @@ -211,5 +211,14 @@ #test("a123c".split(regex("\d+")), ("a", "c")) --- +// Test the `rev` method. +#test("abc".rev(), "cba") +#test("ax̂e".rev(), "ex̂a") + +--- +// Error: 12-15 unknown variable: arg +#"abc".rev(arg) + +--- // Error: 2-2:1 unclosed string #"hello\" |
