aboutsummaryrefslogtreecommitdiffstats
path: root/test/testbench.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/testbench.hpp')
-rw-r--r--test/testbench.hpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/test/testbench.hpp b/test/testbench.hpp
index 0d2424fa..ba3a3212 100644
--- a/test/testbench.hpp
+++ b/test/testbench.hpp
@@ -8,11 +8,32 @@
#ifndef TEST_BENCH_HPP
#define TEST_BENCH_HPP
+#include <string>
+#include <vector>
+
+struct Test
+{
+ std::string name;
+ bool passed;
+
+ Test(const std::string &_name, bool _passed) : name(_name), passed(_passed) {}
+};
+
class TestBench
{
private:
-public:
+ int incrementer=0;
+ int passed=0;
+ int failed=0;
+
+ std::vector<Test> tests_;
+public:
+ TestBench() : tests_() {}
+
+ void startTest(const std::string &test_name);
+ void endTest(bool pass);
+ void printResults();
};
#endif