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

Commit 9c5d029

Browse files
author
Ehsan Totoni
committed
test string int cast
1 parent c1c9170 commit 9c5d029

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
@@ -51,5 +51,12 @@ def test_impl(_str):
5151
arg = 'aa/bb/cc'
5252
self.assertEqual(hpat_func(arg), test_impl(arg))
5353

54+
def test_string_int_cast(self):
55+
def test_impl(_str):
56+
return int(_str)
57+
hpat_func = hpat.jit(test_impl)
58+
arg = '12'
59+
self.assertEqual(hpat_func(arg), test_impl(arg))
60+
5461
if __name__ == "__main__":
5562
unittest.main()

0 commit comments

Comments
 (0)