Skip to content

Commit

Permalink
Refactor to avoid dedicated local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Neumann committed Dec 16, 2021
1 parent 01d4797 commit 68d8f72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rclcpp/test/rclcpp/test_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2702,8 +2702,7 @@ TEST_F(TestNode, declare_parameter_allowed_array_types_function_templates) {
auto name7 = "parameter"_unq;

node->declare_parameter<std::vector<uint8_t>>(name1, std::vector<uint8_t>{3, 4, 5, 7, 9});
std::vector<bool> bool_arr = {false, true};
node->declare_parameter<std::vector<bool>>(name2, bool_arr);
node->declare_parameter<std::vector<bool>>(name2, std::vector<bool>{false, true});
node->declare_parameter<std::vector<int>>(name3, std::vector<int>{1234, 2345});
node->declare_parameter<std::vector<int64_t>>(name4, std::vector<int64_t>{12340, 9876});
node->declare_parameter<std::vector<float>>(
Expand Down

0 comments on commit 68d8f72

Please sign in to comment.