Skip to content

Commit

Permalink
Replace expect tests with asserts
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
  • Loading branch information
Blast545 committed Sep 14, 2020
1 parent 811ad25 commit 5b0137c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rclcpp/test/rclcpp/test_type_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,48 +154,48 @@ TEST_F(TestTypeSupport, basic_getters) {
TEST_F(TestTypeSupport, test_service_ts_get_params_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_get_parameters_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_get_params_srv_type) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_get_parameters_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_get_parameters_types_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_get_parameter_types_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_set_params_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_set_parameters_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_list_params_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_list_parameters_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_describe_params_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_describe_parameters_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

TEST_F(TestTypeSupport, test_service_ts_set_params_atomically_srv) {
const rosidl_service_type_support_t * ts =
rclcpp::type_support::get_set_parameters_atomically_srv_type_support();
EXPECT_NE(nullptr, ts);
ASSERT_NE(nullptr, ts);
EXPECT_TRUE(test_type_support_init_fini(ts));
}

0 comments on commit 5b0137c

Please sign in to comment.