forked from M-Labs/artiq
1
0
Fork 0

test/sync_struct: nparray mutation

This commit is contained in:
Sebastien Bourdeauducq 2015-10-26 23:41:05 +08:00
parent 372bc906c1
commit 9f2ff32948
1 changed files with 5 additions and 3 deletions

View File

@ -17,15 +17,17 @@ def write_test_data(test_dict):
for key, value in enumerate(test_values):
test_dict[key] = value
test_dict[1.5] = 1.5
test_dict["array"] = []
test_dict["array"].append(42)
test_dict["array"].insert(1, 1)
test_dict["list"] = []
test_dict["list"].append(42)
test_dict["list"].insert(1, 1)
test_dict[100] = 0
test_dict[100] = 1
test_dict[101] = 1
test_dict.pop(101)
test_dict[102] = 1
del test_dict[102]
test_dict["array"] = np.zeros(1)
test_dict["array"][0] = 10
test_dict["finished"] = True