mirror of
https://github.com/microsoft/GSL.git
synced 2025-01-18 17:55:01 -05:00
Fixed narrow unit test EXPECT_THROW
This commit is contained in:
parent
14acdcd7a8
commit
94d6a35726
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user