From 92999d0cc0057e60114017857930e38e1494a922 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Wed, 10 Jun 2015 00:52:46 +0200 Subject: [PATCH] sync_struct: test append, insert, delitem and pop actions --- artiq/test/sync_struct.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/artiq/test/sync_struct.py b/artiq/test/sync_struct.py index 9644becf6..d8b229d7e 100644 --- a/artiq/test/sync_struct.py +++ b/artiq/test/sync_struct.py @@ -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