Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit e6abfa9

Browse files
author
Ehsan Totoni
committed
test string getitem int
1 parent c10d31d commit e6abfa9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

hpat/tests/test_strings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,12 @@ def test_impl(_str):
4444
arg = 'aa/bb/cc'
4545
self.assertEqual(hpat_func(arg), test_impl(arg))
4646

47+
def test_getitem_int(self):
48+
def test_impl(_str):
49+
return _str[3]
50+
hpat_func = hpat.jit(test_impl)
51+
arg = 'aa/bb/cc'
52+
self.assertEqual(hpat_func(arg), test_impl(arg))
53+
4754
if __name__ == "__main__":
4855
unittest.main()

0 commit comments

Comments
 (0)