diff --git a/cxxmph/map_tester_test.cc b/cxxmph/map_tester_test.cc new file mode 100644 index 0000000..655418c --- /dev/null +++ b/cxxmph/map_tester_test.cc @@ -0,0 +1,28 @@ +#include "map_tester.h" +#include + +using namespace cxxmph; + +START_TEST(search) { + MapTester tester; + +} END_TEST + +Suite *MapTesterSuite() { + Suite *s = suite_create ("MapTester"); + /* Core test case */ + TCase *tc_core = tcase_create ("Core"); + tcase_add_test (tc_core, search); + suite_add_tcase (s, tc_core); + return s; +} + +int main (void) { + int number_failed; + Suite *s = MapTesterSuite(); + SRunner *sr = srunner_create (s); + srunner_run_all (sr, CK_NORMAL); + number_failed = srunner_ntests_failed (sr); + srunner_free (sr); + return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; +}