aboutsummaryrefslogtreecommitdiffstats
path: root/test/testbench.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-06-22 22:23:16 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-06-22 22:23:16 +0100
commitb002697e19db546c3f7f70c7385f3106310e4579 (patch)
tree4ef419413c5e093f443ea8cda9489e4e8d0a7a51 /test/testbench.hpp
parenta4b4047e48e435253efea0c188b808995a477d8c (diff)
downloadYAGE-b002697e19db546c3f7f70c7385f3106310e4579.tar.gz
YAGE-b002697e19db546c3f7f70c7385f3106310e4579.zip
Adding testbench
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