Skip to content

Commit 92999d0

Browse files
committedJun 9, 2015
sync_struct: test append, insert, delitem and pop actions
1 parent 276a178 commit 92999d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

Diff for: ‎artiq/test/sync_struct.py

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ def write_test_data(test_dict):
1818
for key, value in enumerate(test_values):
1919
test_dict[key] = value
2020
test_dict[1.5] = 1.5
21+
test_dict["array"] = []
22+
test_dict["array"].append(42)
23+
test_dict["array"].insert(1, 1)
24+
test_dict[100] = 0
25+
test_dict[100] = 1
26+
test_dict[101] = 1
27+
test_dict.pop(101)
28+
test_dict[102] = 1
29+
del test_dict[102]
2130
test_dict["finished"] = True
2231

2332

0 commit comments

Comments
 (0)
Please sign in to comment.