Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicholas Londey <nicholas@londey.com>2020-04-23 05:23:36 +0300
committerNicholas Londey <nicholas@londey.com>2020-04-23 05:23:36 +0300
commit94d6a35726d676b677ce4559ddb3e76bae14f98e (patch)
treef84fe236f76ae5736190574cc34f87f1952ac81d /tests
parent14acdcd7a8bd4b9e3df4eaeafb398ec11d219b5a (diff)
Fixed narrow unit test EXPECT_THROW
Diffstat (limited to 'tests')
-rw-r--r--tests/utils_tests.cpp2
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();