summaryrefslogtreecommitdiff
path: root/test/test-misc.cpp
blob: cc9154a2e4ee59995f241a3718c8f5cccb177b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define BOOST_TEST_MODULE BitSet
#include <boost/test/unit_test.hpp>

#include <helpers.h>
#include <stdexcept>

BOOST_AUTO_TEST_CASE(verify)
{
	BOOST_CHECK_NO_THROW(MyGrate::verify<std::runtime_error>(true, "no throw"));
	BOOST_CHECK_THROW(MyGrate::verify<std::runtime_error>(false, "throw re"), std::runtime_error);
	BOOST_CHECK_THROW(MyGrate::verify<std::logic_error>(false, "throw le"), std::logic_error);
}