aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp_unittest/debug/assert.debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp_unittest/debug/assert.debug.cpp')
-rw-r--r--meowpp_unittest/debug/assert.debug.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/meowpp_unittest/debug/assert.debug.cpp b/meowpp_unittest/debug/assert.debug.cpp
new file mode 100644
index 0000000..7514c4c
--- /dev/null
+++ b/meowpp_unittest/debug/assert.debug.cpp
@@ -0,0 +1,21 @@
+#include <cstdio>
+
+#define MEOWPP_DEBUG_ASSERT_TESTING
+
+namespace test {
+
+void abort() {
+ printf("Do abort()\n");
+}
+
+}
+
+#include <meowpp/debug/assert.h>
+
+using namespace meow;
+
+int main() {
+ Assert(1 == 1, "hi");
+ Assert(1 == 0, "no!!!%s %d", "bla", 13);
+ return 0;
+}