forked from philipperemy/digital-setting-circles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestCase.h
45 lines (29 loc) · 939 Bytes
/
TestCase.h
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
40
41
42
43
44
45
#include <stdbool.h>
#include "StarData.h"
#include <string>
#ifndef TEST_CASE_H
#define TEST_CASE_H
class TestCase
{
public:
void assertNan(int i);
void assertNan(double d);
void assertTrue(bool condition);
void assertEquals(int expected, int actual);
void assertEquals(std::string expected, std::string actual);
void assertEquals(double expected, double actual);
void assertEquals(long long expected, long long actual);
void assertGreater(double expected, double actual);
void assertGreater(int expected, int actual);
void assertLess(double expected, double actual);
void assertLess(int expected, int actual);
void fail();
protected:
void setUpErrorMessage(std::string exception_error_msg);
private:
std::string toString(double d);
std::string toString(int i);
std::string toString(long long i);
std::string exception_error_msg;
};
#endif //TEST_CASE_H