Skip to content

Commit 584ac53

Browse files
committed
add test
1 parent b555876 commit 584ac53

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_array.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,14 @@ def test_add():
8585
else:
8686
assert False
8787

88+
89+
def test_add_int_to_long_storage():
90+
x = [2147483648, 1]
91+
x[0] = 42 # should not raise
92+
assert x[0] == 42
93+
94+
def test_add_int_to_long_array():
95+
from array import array
96+
y = array('l', [1, 2])
97+
y[0] = 42 # should not raise
98+
assert y[0] == 42

0 commit comments

Comments
 (0)