forked from M-Labs/artiq
1
0
Fork 0

sync_struct: test append, insert, delitem and pop actions

This commit is contained in:
Yann Sionneau 2015-06-10 00:52:46 +02:00
parent 276a1784ef
commit 92999d0cc0
1 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,15 @@ def write_test_data(test_dict):
for key, value in enumerate(test_values): for key, value in enumerate(test_values):
test_dict[key] = value test_dict[key] = value
test_dict[1.5] = 1.5 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 test_dict["finished"] = True