Skip to content
Snippets Groups Projects

ENH: Test datatypes and values in Extern C interface

Merged Florian Spreckelsen requested to merge f-consolidate-c into dev
All threads resolved!

Files

+ 10
10
@@ -33,16 +33,16 @@
@@ -33,16 +33,16 @@
*/
*/
#define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \
#define EXPECT_THROW_MESSAGE(statement, exeption_type, message) \
EXPECT_THROW( \
EXPECT_THROW( \
try { statement; } catch (const exeption_type &e) { \
try { statement; } catch (const exeption_type &e) { \
EXPECT_EQ(std::string(e.what()), message); \
EXPECT_EQ(std::string(e.what()), message); \
throw; \
throw; \
}, \
}, \
exeption_type)
exeption_type)
#define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \
#define ASSERT_THROW_MESSAGE(statement, exeption_type, message) \
ASSERT_THROW( \
ASSERT_THROW( \
try { statement; } catch (const exeption_type &e) { \
try { statement; } catch (const exeption_type &e) { \
ASSERT_EQ(std::string(e.what()), message); \
ASSERT_EQ(std::string(e.what()), message); \
throw; \
throw; \
}, \
}, \
exeption_type)
exeption_type)
#endif
#endif
Loading