diff options
author | Neil <nyamatongwe@gmail.com> | 2013-11-17 11:11:45 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-11-17 11:11:45 +1100 |
commit | 1f58d727d692379306edf4ebc18ca91557ea3f69 (patch) | |
tree | 0ec54b63dbc97bdab36aa883914c721f76138a5c /test/unit/unitTest.cxx | |
parent | 57240ad0eff0cb351ccb24bb21465ac0ba815629 (diff) | |
download | scintilla-mirror-1f58d727d692379306edf4ebc18ca91557ea3f69.tar.gz |
Switch unit tests to Catch framework.
Diffstat (limited to 'test/unit/unitTest.cxx')
-rw-r--r-- | test/unit/unitTest.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/unit/unitTest.cxx b/test/unit/unitTest.cxx index b0ac9f277..00a6a6f16 100644 --- a/test/unit/unitTest.cxx +++ b/test/unit/unitTest.cxx @@ -6,6 +6,7 @@ Partitioning RunStyles ContractionState + CharClassify To do: Decoration @@ -35,7 +36,8 @@ #include "Platform.h" -#include <gtest/gtest.h> +#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file +#include "catch.hpp" // Needed for PLATFORM_ASSERT in code being tested @@ -43,8 +45,3 @@ void Platform::Assert(const char *c, const char *file, int line) { fprintf(stderr, "Assertion [%s] failed at %s %d\n", c, file, line); abort(); } - -int main(int argc, char **argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} |