diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp index 98faf58..a9408c0 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -109,7 +109,7 @@ TEST(utils_tests, narrow) EXPECT_TRUE(c == 120); n = 300; - EXPECT_DEATH(narrow(n), deathstring); + EXPECT_THROW(narrow(n), narrowing_error); const auto int32_max = std::numeric_limits::max(); const auto int32_min = std::numeric_limits::min();