fix CHECK_THROWS_AS usage

"Note that the exception type is extended with const& and you should not include it yourself."

according to https://github.com/catchorg/Catch2/blob/devel/docs/assertions.md#exceptions
This commit is contained in:
Alberto Invernizzi
2021-01-02 10:36:02 +01:00
parent b6420aa22f
commit eddeaf44ca
7 changed files with 32 additions and 32 deletions

View File

@@ -69,7 +69,7 @@ TEST_CASE("multipart codec decode bad data overflow", "[codec_multipart]")
CHECK_THROWS_AS(
multipart_t::decode(wrong_size),
const std::out_of_range&);
std::out_of_range);
}
TEST_CASE("multipart codec decode bad data extra data", "[codec_multipart]")
@@ -83,7 +83,7 @@ TEST_CASE("multipart codec decode bad data extra data", "[codec_multipart]")
CHECK_THROWS_AS(
multipart_t::decode(wrong_size),
const std::out_of_range&);
std::out_of_range);
}