Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to actually try to serialize a char #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/rosidl_runtime_py/test_set_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ def test_set_message_fields_none():
def test_set_message_fields_partial():
original_msg = message_fixtures.get_msg_basic_types()[0]
original_msg.bool_value = False
original_msg.char_value = 3
original_msg.char_value = chr(3)
original_msg.int32_value = 42

modified_msg = copy.copy(original_msg)
values = {}
values['bool_value'] = True
values['char_value'] = 1
values['char_value'] = chr(1)
values['int32_value'] = 24
set_message_fields(modified_msg, values)

Expand Down Expand Up @@ -213,7 +213,7 @@ def test_set_message_fields_nested_type():
msg0 = message_fixtures.get_msg_nested()[0]

msg0.basic_types_value.bool_value = False
msg0.basic_types_value.char_value = 3
msg0.basic_types_value.char_value = chr(3)
msg0.basic_types_value.int32_value = 42

assert msg0.basic_types_value != msg_basic_types
Expand Down