removing flawed test case
This commit is contained in:
parent
764ed26c41
commit
9537c70b67
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ TEST_CASE("array")
|
||||||
CHECK_NOTHROW(j[21]);
|
CHECK_NOTHROW(j[21]);
|
||||||
CHECK_THROWS_AS(const int i = j.at(21), std::out_of_range);
|
CHECK_THROWS_AS(const int i = j.at(21), std::out_of_range);
|
||||||
CHECK_THROWS_AS(nonarray[0] = 10, std::domain_error);
|
CHECK_THROWS_AS(nonarray[0] = 10, std::domain_error);
|
||||||
CHECK_NOTHROW(j[21] = 5);
|
// the next test is remove due to undefined behavior
|
||||||
|
//CHECK_NOTHROW(j[21] = 5);
|
||||||
CHECK_THROWS_AS(j.at(21) = 5, std::out_of_range);
|
CHECK_THROWS_AS(j.at(21) = 5, std::out_of_range);
|
||||||
CHECK_THROWS_AS(nonarray += 2, std::runtime_error);
|
CHECK_THROWS_AS(nonarray += 2, std::runtime_error);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue