diff options
author | Simon Warta <[email protected]> | 2015-07-15 00:16:50 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-07-15 00:16:50 +0200 |
commit | cadcfbf1bdcbf1377d117eb81402ae1b9f3c3f04 (patch) | |
tree | b543806c0a62f33a1bb13dc25db4c60d93c752fd /src/tests/tests.h | |
parent | 15a53cd1cf09078e456a4fd03484e71fd00f055e (diff) |
Improve test reporting
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r-- | src/tests/tests.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h index 15ce4b4ab..d2fe0e69b 100644 --- a/src/tests/tests.h +++ b/src/tests/tests.h @@ -42,7 +42,7 @@ size_t run_tests_in_dir(const std::string& dir, std::function<size_t (const std: // Run a list of tests typedef std::function<size_t ()> test_fn; -size_t run_tests(const std::vector<test_fn>& tests); +size_t run_tests(const std::vector<std::pair<std::string, test_fn>>& tests); void test_report(const std::string& name, size_t ran, size_t failed); #define TEST(expr, msg) do { if(!(expr)) { ++fails; std::cout << msg; } while(0) |