blob: ba3a321207c7a6a9e49273b8679e28434f380b29 (
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
33
34
35
36
37
38
39
|
/*
* created 22-06-17 by Yann Herklotz
*
* Test bench to test different functions in the yage library
*
*/
#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
|