-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestcasevector.h
More file actions
31 lines (23 loc) · 756 Bytes
/
testcasevector.h
File metadata and controls
31 lines (23 loc) · 756 Bytes
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
#ifndef TESTCASEVEC_H
#define TESTCASEVEC_H
#include "icase.cpp"
#define RED "\033[31m"
/// @brief
/// @tparam T1 element in vector type
/// @tparam T2 parameter 1 type
/// @tparam T3 parameter 2 type
/// @tparam T4 parameter 3 type
template <typename T1, typename T2, typename T3, typename T4>
class TestCaseVector : public ICase<T1, T2, T3, T4>{
public:
vector<T1> expected;
vector<T1> result;
Code<vector<T1>, T2, T3, T4> code;
std::chrono::time_point<std::chrono::system_clock> start, endtime;
TestCaseVector(vector<T1> expected);
void run(T2 para1, T3 para2, T4 para3) override;
bool isPassed() override;
pair<string, string> getStrExpectedandResult() override;
double getExcuteTime() override;
};
#endif