From 51c4bb1bb603650eb2bd6d8f3b8ca08a78342e32 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Sun, 9 Apr 2017 20:57:33 -0700 Subject: [PATCH] Add tuple setting test --- test/test_struct.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_struct.py b/test/test_struct.py index 14aaca2..953a8be 100644 --- a/test/test_struct.py +++ b/test/test_struct.py @@ -115,6 +115,14 @@ def test_builder_set_from_list(all_types): assert list(msg.int32List) == [0, 1, 2] +def test_builder_set_from_tuple(all_types): + msg = all_types.TestAllTypes.new_message() + + msg.int32List = (0, 1, 2) + + assert list(msg.int32List) == [0, 1, 2] + + def test_null_str(all_types): msg = all_types.TestAllTypes.new_message()