Added missing file.

This commit is contained in:
Davi de Castro Reis 2012-06-01 20:39:10 -03:00
parent 2cffd02352
commit ec467953bc

28
cxxmph/map_tester_test.cc Normal file
View File

@ -0,0 +1,28 @@
#include "map_tester.h"
#include <check.h>
using namespace cxxmph;
START_TEST(search) {
MapTester<std::unordered_map> 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;
}