Add test and changes entry for Python -builtin %array_class fix
Issue https://github.com/swig/swig/issues/446
This commit is contained in:
parent
b630cc603c
commit
173c028dd4
9 changed files with 51 additions and 8 deletions
|
|
@ -7,3 +7,12 @@ d[5] = d[0] + 3
|
|||
|
||||
if d[5] + d[0] != 17:
|
||||
raise RuntimeError
|
||||
|
||||
shorts = shortArray(5)
|
||||
|
||||
for i in range(5):
|
||||
shorts[i] = i
|
||||
|
||||
sum = sum_array(shorts)
|
||||
if sum != 0+1+2+3+4:
|
||||
raise RuntimeError("incorrect sum, got: " + str(sum))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue