diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-08-30 17:19:25 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-08-30 17:19:25 +0200 |
| commit | a6f347fbb7e9d21792afe2ec8f9900ceb400ce2b (patch) | |
| tree | c768925e2bd06a5c5809b6b74b4908688ceb483c /tests/typ/compiler | |
| parent | dacab7869fafb4963b2d9739fd982aa531ce2578 (diff) | |
Add test for ends-with fix
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/string.typ | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ index b0708979..ed1296a7 100644 --- a/tests/typ/compiler/string.typ +++ b/tests/typ/compiler/string.typ @@ -81,6 +81,9 @@ #test("Typst".ends-with(regex("\d*")), true) #test("Typst".ends-with(regex("\d+")), false) #test("Typ12".ends-with(regex("\d+")), true) +#test("typst13".ends-with(regex("1[0-9]")), true) +#test("typst113".ends-with(regex("1[0-9]")), true) +#test("typst23".ends-with(regex("1[0-9]")), false) --- // Test the `find` and `position` methods. |
