Skip to content

Commit e334a4c

Browse files
committed
Add a runtime test
1 parent 3fbb3cd commit e334a4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

integration_tests/test_str_03.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ def test_issue_1124():
1919
assert a[-2] == a[4]
2020
assert a[-4] == "2"
2121

22+
# runtime tests
23+
k: i32 = len(a); i: i32
24+
for i in range(k):
25+
assert a[-i-1] == a[k-i-1]
26+
2227

2328
test_new_line()
2429
test_int()

0 commit comments

Comments
 (0)