diff options
author | Nicholas Londey <nicholas@londey.com> | 2020-04-23 05:23:36 +0300 |
---|---|---|
committer | Nicholas Londey <nicholas@londey.com> | 2020-04-23 05:23:36 +0300 |
commit | 94d6a35726d676b677ce4559ddb3e76bae14f98e (patch) | |
tree | f84fe236f76ae5736190574cc34f87f1952ac81d /tests | |
parent | 14acdcd7a8bd4b9e3df4eaeafb398ec11d219b5a (diff) |
Fixed narrow unit test EXPECT_THROW
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<char>(n), deathstring); + EXPECT_THROW(narrow<char>(n), narrowing_error); const auto int32_max = std::numeric_limits<int32_t>::max(); const auto int32_min = std::numeric_limits<int32_t>::min(); |