-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunTest.cpp
More file actions
53 lines (42 loc) · 1.14 KB
/
Copy pathrunTest.cpp
File metadata and controls
53 lines (42 loc) · 1.14 KB
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
46
47
48
49
50
51
52
53
#include <iostream>
#include "UnitTests.cpp"
int main(){
bool returnValue = 0;
UnitTests ut ("unittest_output");
bool resultOne = ut.testHealth();
if( resultOne == false ){
std::cerr << "testHealth test FAILED" << std::endl;
returnValue = -1;
} else {
std::cout << "testHealth passed" << std::endl;
}
bool resultFour = ut.testArmor();
if( resultOne == false ){
std::cerr << "testArmor test FAILED" << std::endl;
returnValue = -1;
} else {
std::cout << "testArmor passed" << std::endl;
}
bool resultFive = ut.testSpeed();
if( resultOne == false ){
std::cerr << "testSpeed test FAILED" << std::endl;
returnValue = -1;
} else {
std::cout << "testSpeed passed" << std::endl;
}
bool resultTwo = ut.testInventory();
if ( resultTwo == false){
std:: cerr << "testInventory test FAILED" << std::endl;
returnValue = -1;
} else {
std::cout << "testInventory passed" << std::endl;
}
bool resultThree = ut.testInventoryTwo();
if ( resultThree == false){
std:: cerr << "testInventoryTwo test FAILED" << std::endl;
returnValue = -1;
} else {
std::cout << "testInventoryTwo passed" << std::endl;
}
return returnValue;
}