mirror of
https://github.com/microsoft/GSL.git
synced 2026-05-05 04:04:14 +02:00
changing text in notices & readme. adding terminate handler for tests
This commit is contained in:
@@ -107,6 +107,11 @@ TEST(bounds_tests, bounds_convertible)
|
||||
static_bounds<dynamic_range> b5;
|
||||
static_bounds<34> b6;
|
||||
|
||||
std::set_terminate([] {
|
||||
std::cerr << "Expected Death. bounds_convertible";
|
||||
std::abort();
|
||||
});
|
||||
|
||||
b5 = static_bounds<20>();
|
||||
EXPECT_DEATH(b6 = b5, ".*");
|
||||
b5 = static_bounds<34>();
|
||||
|
||||
Reference in New Issue
Block a user