aboutsummaryrefslogtreecommitdiffstats
path: root/test/testbench.hpp
blob: 574561afb0e89c4c5d85e8ce29c86b1c516e920b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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:
	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