summaryrefslogtreecommitdiff
path: root/test/test-misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-misc.cpp')
-rw-r--r--test/test-misc.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-misc.cpp b/test/test-misc.cpp
new file mode 100644
index 0000000..cc9154a
--- /dev/null
+++ b/test/test-misc.cpp
@@ -0,0 +1,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);
+}