Skip to content
Snippets Groups Projects
Commit c10ce9ce authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

STY: ws

parent e03da3ea
Branches
Tags
No related merge requests found
Pipeline #12583 failed
...@@ -32,15 +32,17 @@ ...@@ -32,15 +32,17 @@
* @date 2021-07-07 * @date 2021-07-07
*/ */
#define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \ #define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \
EXPECT_THROW(try { statement; } catch (const exeption_type &e) { \ EXPECT_THROW( \
EXPECT_EQ(std::string(e.what()), message); \ try { statement; } catch (const exeption_type &e) { \
throw; \ EXPECT_EQ(std::string(e.what()), message); \
}, \ throw; \
exeption_type) }, \
exeption_type)
#define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \ #define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \
ASSERT_THROW(try { statement; } catch (const exeption_type &e) { \ ASSERT_THROW( \
ASSERT_EQ(std::string(e.what()), message); \ try { statement; } catch (const exeption_type &e) { \
throw; \ ASSERT_EQ(std::string(e.what()), message); \
}, \ throw; \
exeption_type) }, \
exeption_type)
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment