Fixed narrow unit test EXPECT_THROW

This commit is contained in:
Nicholas Londey 2020-04-23 12:23:36 +10:00
parent 14acdcd7a8
commit 94d6a35726

View File

@ -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();