summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/program_options/test/minitest.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/program_options/test/minitest.hpp')
-rw-r--r--src/boost/libs/program_options/test/minitest.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/boost/libs/program_options/test/minitest.hpp b/src/boost/libs/program_options/test/minitest.hpp
new file mode 100644
index 000000000..7d38efd2b
--- /dev/null
+++ b/src/boost/libs/program_options/test/minitest.hpp
@@ -0,0 +1,25 @@
+#ifndef BOOST_PROGRAM_OPTIONS_MINITEST
+#define BOOST_PROGRAM_OPTIONS_MINITEST
+
+#include <assert.h>
+#include <iostream>
+#include <stdlib.h>
+
+#define BOOST_REQUIRE(b) assert(b)
+#define BOOST_CHECK(b) assert(b)
+#define BOOST_CHECK_EQUAL(a, b) assert(a == b)
+#define BOOST_ERROR(description) std::cerr << description; std::cerr << "\n"; abort();
+#define BOOST_CHECK_THROW(expression, exception) \
+ try \
+ { \
+ expression; \
+ BOOST_ERROR("expected exception not thrown");\
+ throw 10; \
+ } \
+ catch(exception &) \
+ { \
+ }
+
+
+
+#endif