diff --git a/tests/span_compatibility_tests.cpp b/tests/span_compatibility_tests.cpp index 62793e7..d4cde0c 100644 --- a/tests/span_compatibility_tests.cpp +++ b/tests/span_compatibility_tests.cpp @@ -48,22 +48,22 @@ template static constexpr bool AsWritableBytesCompilesFor()))>> = true; -TEST(span_test, std_span_compatibilty_assertion_tests) +TEST(span_compatibility_tests, assertion_tests) { int arr[3]{10, 20, 30}; std::array stl{{100, 200, 300}}; { gsl::span sp_dyn; - assert(sp_dyn.data() == nullptr); - assert(sp_dyn.size() == 0); - assert(sp_dyn.empty()); + EXPECT_TRUE(sp_dyn.data() == nullptr); + EXPECT_TRUE(sp_dyn.size() == 0); + EXPECT_TRUE(sp_dyn.empty()); } { gsl::span sp_zero; - assert(sp_zero.data() == nullptr); - assert(sp_zero.size() == 0); - assert(sp_zero.empty()); + EXPECT_TRUE(sp_zero.data() == nullptr); + EXPECT_TRUE(sp_zero.size() == 0); + EXPECT_TRUE(sp_zero.empty()); gsl::span sp_dyn_a(arr, 3); gsl::span sp_dyn_b(begin(arr), 3);