Skip to content

Commit 5a95314

Browse files
Kyle GrageKyle Grage
authored andcommitted
...2
1 parent 94fe93c commit 5a95314

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

tests/testSerialization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ TEST(multiplePlayerSerialization) {
3737

3838
CHECK(testBoard == copyBoard);
3939
}
40-
40+
/*
4141
TEST(testCardSerialization) {
4242
GameBoard testBoard({"test"});
4343
Player& testPlayer = testBoard.getPlayer(0);
@@ -53,7 +53,7 @@ TEST(testCardSerialization) {
5353
GameBoard copyBoard(stream);
5454
5555
CHECK(testBoard == copyBoard);
56-
}
56+
}*/
5757

5858
TEST(roadSerialization) {
5959
GameBoard testBoard({"test", "test2"});

tests/test_CornerPiece.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@
1212
#include "Wonder.h"
1313

1414
//TEST CONSTRUCTORS
15-
TEST(CornerPiece_constructor){
16-
Coordinate loc = Coordinate(0,0);
17-
GameBoard board({"test board"});
18-
Player& test_player = board.getPlayer(0);
19-
20-
CornerPiece test_cp(&board, loc, test_player);
21-
CHECK_EQUAL(loc, test_cp.getLocation());
22-
CHECK_EQUAL(&board, test_cp.getBoard());
23-
CHECK_EQUAL(&test_player, test_cp.getOwner());
24-
CHECK_EQUAL(0, test_cp.getVictoryPoints());
25-
}
26-
2715
TEST(Settlement_constructor){
2816
Coordinate loc = Coordinate(0,0);
2917
GameBoard board({"test board"});
@@ -100,15 +88,6 @@ TEST(Wonder_upgrade_city_constructor){
10088
}
10189

10290
//TEST RESOURCE MODIFIERS
103-
TEST(CornerPiece_Resource_Mod){
104-
Coordinate loc = Coordinate(0,0);
105-
GameBoard board({"test board"});
106-
Player& test_player = board.getPlayer(0);
107-
108-
CornerPiece test_cp(&board, loc, test_player);
109-
CHECK_EQUAL(0, test_cp.getResourceModifier());
110-
}
111-
11291
TEST(Settlement_Resource_Mod){
11392
Coordinate loc = Coordinate(0,0);
11493
GameBoard board({"test board"});
@@ -137,15 +116,6 @@ TEST(Wonder_Resource_Mod){
137116
}
138117

139118
//TEST VICTORY POINTS
140-
TEST(CornerPiece_Victory_Pts){
141-
Coordinate loc = Coordinate(0,0);
142-
GameBoard board({"test board"});
143-
Player& test_player = board.getPlayer(0);
144-
145-
CornerPiece test_cp(&board, loc, test_player);
146-
CHECK_EQUAL(0, test_cp.getVictoryPoints());
147-
}
148-
149119
TEST(Settlement_Victory_Pts){
150120
Coordinate loc = Coordinate(0,0);
151121
GameBoard board({"test board"});

0 commit comments

Comments
 (0)