diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2023-05-19 08:41:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-19 14:41:58 +0200 |
| commit | 8d4f9304c0539442e0e2273a4e8fa10379178881 (patch) | |
| tree | c1098ee5bd835df36ccc475852cb95fdc3a6f572 /tests | |
| parent | f9ab828e2992f795b57fe03ad10d498b315f7e7d (diff) | |
Update string doc: index can be negative (#1198)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compiler/string.typ | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ index 0bc3a9be..ddd0f7ff 100644 --- a/tests/typ/compiler/string.typ +++ b/tests/typ/compiler/string.typ @@ -24,6 +24,8 @@ // Test the `at` method. #test("Hello".at(1), "e") #test("Hello".at(4), "o") +#test("Hello".at(-1), "o") +#test("Hello".at(-2), "l") #test("Hey: 🏳️🌈 there!".at(5), "🏳️🌈") --- |
