Skip to content

Commit 728ce0c

Browse files
committed
Add a compile time test
1 parent 35c6c16 commit 728ce0c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

integration_tests/test_str_03.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,16 @@ def test_int():
1010
l: i64 = 4
1111
print("abc:", i, j, k, l)
1212

13+
14+
def test_issue_1124():
15+
a: str
16+
a = "012345"
17+
assert a[-1] == "5"
18+
assert a[-1] == a[5]
19+
assert a[-2] == a[4]
20+
assert a[-4] == "2"
21+
22+
1323
test_new_line()
1424
test_int()
25+
test_issue_1124()

0 commit comments

Comments
 (0)