JayBeams  0.1
Another project to have fun coding.
ut_assert_throw.cpp
Go to the documentation of this file.
1 #include <jb/assert_throw.hpp>
2 
3 #include <boost/test/unit_test.hpp>
4 
5 /**
6  * @test Verify that jb::assert_throw works as expected.
7  */
8 BOOST_AUTO_TEST_CASE(assert_throw) {
9  BOOST_CHECK_THROW(JB_ASSERT_THROW(1 == 0), std::exception);
10  BOOST_CHECK_NO_THROW(JB_ASSERT_THROW(0 == 0));
11 }
BOOST_AUTO_TEST_CASE(assert_throw)
#define JB_ASSERT_THROW(PRED)