From fa817eee52694a15241c7d65c578f37c1b869dc9 Mon Sep 17 00:00:00 2001 From: cathook Date: Sat, 18 Oct 2014 04:18:27 +0800 Subject: Move the test code into the main folder also remove the doc directory from the git filesystem --- meowpp/debug/assert.debug_test.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meowpp/debug/assert.debug_test.cpp (limited to 'meowpp/debug/assert.debug_test.cpp') diff --git a/meowpp/debug/assert.debug_test.cpp b/meowpp/debug/assert.debug_test.cpp new file mode 100644 index 0000000..7514c4c --- /dev/null +++ b/meowpp/debug/assert.debug_test.cpp @@ -0,0 +1,21 @@ +#include + +#define MEOWPP_DEBUG_ASSERT_TESTING + +namespace test { + +void abort() { + printf("Do abort()\n"); +} + +} + +#include + +using namespace meow; + +int main() { + Assert(1 == 1, "hi"); + Assert(1 == 0, "no!!!%s %d", "bla", 13); + return 0; +} -- cgit v1.2.3