-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcountryMain.cpp
39 lines (31 loc) · 1.57 KB
/
countryMain.cpp
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
#include "Map.h"
#include <iostream>
int main(int argc, char const *argv[]){
//Invalid file
cout << "\nTesting an INVALID file - wrong format:\n ";
MapLoader* invalidMap = new MapLoader("C:\\Users\\user1\\Desktop\\yes.txt");
cout << "---------------------------------------" << endl;
//Inavlid map - duplicate country
cout << "Testing an INVALID file - duplicate country: ";
MapLoader* invalidMap2 = new MapLoader("C:\\Users\\user1\\Desktop\\canada-invalid.map");
cout << "---------------------------------------\n" << endl;
//Inavlid map - unused continent
cout << "Testing an INVALID file - unused continent (not conected continent): \n";
MapLoader* invalidMap3 = new MapLoader("C:\\Users\\user1\\Desktop\\canada-invalid - Copy.map");
cout << "---------------------------------------" << endl;
//Valid map
cout << "Testing an VALID file: \n";
MapLoader* validMap = new MapLoader("C:\\Users\\user1\\Desktop\\bigeurope.map");
cout << "---------------------------------------" << endl;
// //Valid map
cout << "Testing an VALID file: \n";
MapLoader* validMap1 = new MapLoader("C:\\Users\\user1\\Desktop\\europe.map");
cout << "---------------------------------------" << endl;
//Valid map
cout << "Testing an VALID file: \n";
MapLoader* validMap2 = new MapLoader("C:\\Users\\user1\\Desktop\\GTA_SAN_AN.map");
cout << "---------------------------------------" << endl;
//Demonstrating use of valid map print function
cout << *validMap1->getMap() << endl;
return 0;
}