@ -5,6 +5,8 @@
#include <functional>
namespace fuc2 {
#define TEST(N) {#N, N}
using Func = std::function<void()>;
using Case = std::pair<std::string, Func>;
@ -4,6 +4,7 @@
#include "fuc2/testing.hpp"
std::string craft_error(
const std::string& type,
const std::string& test,
@ -59,9 +59,9 @@ namespace sample1 {
.name="std::deque basic operations",
.options={ .fail_fast=false },
.tests={
{"test_push_pop_back", test_push_pop_back},
{"test_push_pop_front", test_push_pop_front},
{"test_push_blows_up", test_push_blows_up},
TEST(test_push_pop_back),
TEST(test_push_pop_front),
TEST(test_push_blows_up),
}
};
@ -39,8 +39,8 @@ namespace sample_failing {
.name="std::deque failing ops",
{"fail_push_pop_back", fail_push_pop_back},
{"fail_blows_up", fail_blows_up},
TEST(fail_push_pop_back),
TEST(fail_blows_up),