Skip to content

Commit

Permalink
sync_struct: test append, insert, delitem and pop actions
Browse files Browse the repository at this point in the history
fallen committed Jun 9, 2015
1 parent 276a178 commit 92999d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions artiq/test/sync_struct.py
Original file line number Diff line number Diff line change
@@ -18,6 +18,15 @@ 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[100] = 0
test_dict[100] = 1
test_dict[101] = 1
test_dict.pop(101)
test_dict[102] = 1
del test_dict[102]
test_dict["finished"] = True


0 comments on commit 92999d0

Please sign in to comment.