From 61f99089288138989cf244d174882aa5088b738b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 9 Mar 2025 19:47:50 +0530 Subject: Refactor directory structure --- spec/TestUtils.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 spec/TestUtils.h (limited to 'spec/TestUtils.h') diff --git a/spec/TestUtils.h b/spec/TestUtils.h deleted file mode 100644 index 20b3ba8..0000000 --- a/spec/TestUtils.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include -#include -#include - -#define ANSI_BOLD "\x1b[1m" -#define COLOR_CONTEXT "\x1b[32m" ANSI_BOLD -#define COLOR_IT "\x1b[36m" ANSI_BOLD -#define COLOR_SKIP "\x1b[33m" ANSI_BOLD -#define ANSI_RESET "\x1b[0m" - -#define context(msg) printf("⚪" COLOR_CONTEXT "%s" ANSI_RESET "\n", msg); - -#define it(msg) \ - printf(" ⚪" ANSI_BOLD COLOR_IT "it " ANSI_RESET COLOR_IT "%s" ANSI_RESET \ - "\n", \ - msg); \ - if (1) - -#define xit(msg) \ - printf(" ⚪" COLOR_SKIP "SKIPPED it %s" ANSI_RESET "\n", msg); \ - if (0) - -#define STRINGIFY(x) #x - -std::vector> &getQTestRegistry(); -int runAllTests(); - -#define QTEST_REGISTER(klass) \ - namespace { \ - const bool registered__##klass = []() { \ - getQTestRegistry().push_back([]() { \ - auto t = new klass; \ - t->setObjectName(#klass); \ - return t; \ - }); \ - return true; \ - }(); \ - }; -- cgit v1.3.1