Skip to content

Commit

Permalink
Update YAML tests.
Browse files Browse the repository at this point in the history
This PR will cause a lot of pain to downstream users.

Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Jan 17, 2024
1 parent 1732d0c commit db99361
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rosidl_generator_tests/test/rosidl_generator_cpp/test_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ long_double_value: 1.12500
R"(basic_types_value:
bool_value: false
byte_value: 0x00
char_value: 0
char_value: 0x00
float32_value: 0.00000
float64_value: 0.00000
int8_value: 0
Expand Down Expand Up @@ -203,9 +203,9 @@ constants_values: []
- 0x01
- 0xff
char_values_default:
- 0
- 1
- 127
- 0x00
- 0x01
- 0x7f
float32_values_default:
- 1.12500
- 0.00000
Expand Down Expand Up @@ -267,7 +267,7 @@ TEST(Test_rosidl_generator_traits, to_yaml_flow_style) {
rosidl_generator_tests::msg::Defaults msg;
msg.float64_value = 1.0;
EXPECT_STREQ(
"{bool_value: true, byte_value: 0x32, char_value: 100, "
"{bool_value: true, byte_value: 0x32, char_value: 0x64, "
"float32_value: 1.12500, float64_value: 1.00000, int8_value: -50, "
"uint8_value: 200, int16_value: -1000, uint16_value: 2000, "
"int32_value: -30000, uint32_value: 60000, int64_value: -40000000, "
Expand Down Expand Up @@ -319,7 +319,7 @@ w\xf6rld", wstring_value_default1: "Hello world!", )"
#endif
EXPECT_STREQ(
R"({basic_types_value: {bool_value: false, byte_value: 0x00, )"
R"(char_value: 0, float32_value: 0.00000, float64_value: 0.00000, )"
R"(char_value: 0x00, float32_value: 0.00000, float64_value: 0.00000, )"
R"(int8_value: 0, uint8_value: 0, int16_value: 0, uint16_value: 0, )"
R"(int32_value: 0, uint32_value: 0, int64_value: 0, uint64_value: 0}})",
yaml.c_str());
Expand All @@ -343,7 +343,7 @@ w\xf6rld", wstring_value_default1: "Hello world!", )"
R"(int32_values: [], uint32_values: [], int64_values: [], )"
R"(uint64_values: [], string_values: [], basic_types_values: [], )"
R"(constants_values: [], defaults_values: [{bool_value: true, )"
R"(byte_value: 0x32, char_value: 100, float32_value: 1.12500, )"
R"(byte_value: 0x32, char_value: 0x64, float32_value: 1.12500, )"
R"(float64_value: 1.12500, int8_value: -50, uint8_value: 200, )"
R"(int16_value: -1000, uint16_value: 2000, int32_value: -30000, )"
R"(uint32_value: 60000, int64_value: -40000000, uint64_value: 50000000}],)"
Expand Down

0 comments on commit db99361

Please sign in to comment.