Skip to content

Commit 384c193

Browse files
committed
[unittest/python] test set_slice on std::array<int, ...>
1 parent 70bae63 commit 384c193

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unittest/python/test_std_array.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
print(ts.vecs[0])
4242
print(ts.vecs[1])
4343

44+
ts.integs[:] = 111
45+
print("Test of set_slice for std::array<int>:", ts.integs[:].tolist())
46+
for el in ts.integs:
47+
assert el == 111
48+
4449
ts.vecs[0][0] = 0.0
4550
ts.vecs[1][0] = -243
4651
print(ts.vecs[0])

0 commit comments

Comments
 (0)