From 1c1406d02d333a3317fdbb67921af4ba31bd9bcd Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 9 May 2023 16:56:27 +0200 Subject: First version of the mini testing framework --- src/test.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test.h (limited to 'src/test.h') diff --git a/src/test.h b/src/test.h new file mode 100644 index 0000000..24f008f --- /dev/null +++ b/src/test.h @@ -0,0 +1,22 @@ +#pragma once + +#include +#include + +namespace keltest { +class test_runner; +class test_case { +private: + std::string file; + uint32_t line; + std::string description; + test_case* next; + test_case** prev; +public: + test_case(std::string file_, uint32_t line_, std::string description_); + ~test_case(); + + virtual void run() = 0; +}; +} +#include "macro.h" -- cgit v1.2.3