JayBeams
0.1
Another project to have fun coding.
jb
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
BOOST_AUTO_TEST_CASE(assert_throw)
Definition:
ut_assert_throw.cpp:8
JB_ASSERT_THROW
#define JB_ASSERT_THROW(PRED)
Definition:
assert_throw.hpp:14
assert_throw.hpp
Generated by
1.8.13