Changeset View
Changeset View
Standalone View
Standalone View
src/univalue/test/object.cpp
Show All 13 Lines | |||||
#define BOOST_FIXTURE_TEST_SUITE(a, b) | #define BOOST_FIXTURE_TEST_SUITE(a, b) | ||||
#define BOOST_AUTO_TEST_CASE(funcName) void funcName() | #define BOOST_AUTO_TEST_CASE(funcName) void funcName() | ||||
#define BOOST_AUTO_TEST_SUITE_END() | #define BOOST_AUTO_TEST_SUITE_END() | ||||
#define BOOST_CHECK(expr) assert(expr) | #define BOOST_CHECK(expr) assert(expr) | ||||
#define BOOST_CHECK_EQUAL(v1, v2) assert((v1) == (v2)) | #define BOOST_CHECK_EQUAL(v1, v2) assert((v1) == (v2)) | ||||
#define BOOST_CHECK_THROW(stmt, excMatch) { \ | #define BOOST_CHECK_THROW(stmt, excMatch) { \ | ||||
try { \ | try { \ | ||||
(stmt); \ | (stmt); \ | ||||
assert(0 && "No exception caught"); \ | |||||
} catch (excMatch & e) { \ | } catch (excMatch & e) { \ | ||||
} catch (...) { \ | } catch (...) { \ | ||||
assert(0); \ | assert(0 && "Wrong exception caught"); \ | ||||
} \ | } \ | ||||
} | } | ||||
#define BOOST_CHECK_NO_THROW(stmt) { \ | #define BOOST_CHECK_NO_THROW(stmt) { \ | ||||
try { \ | try { \ | ||||
(stmt); \ | (stmt); \ | ||||
} catch (...) { \ | } catch (...) { \ | ||||
assert(0); \ | assert(0); \ | ||||
} \ | } \ | ||||
▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines |