Skip to content

Commit 235165c

Browse files
Kyle GrageKyle Grage
authored andcommitted
TSM TSM TSM
1 parent bf29bd0 commit 235165c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_CornerPiece.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TEST(Settlement_constructor){
2121

2222
Settlement test_cp(board, loc, test_player);
2323
CHECK_EQUAL(loc, test_cp.getLocation());
24-
CHECK_EQUAL(board, test_cp.getBoard());
24+
CHECK(board==test_cp.getBoard());
2525
CHECK_EQUAL(1, test_cp.getVictoryPoints());
2626
}
2727

@@ -32,7 +32,7 @@ TEST(City_constructor){
3232

3333
City test_cp(board, loc, test_player);
3434
CHECK_EQUAL(loc, test_cp.getLocation());
35-
CHECK_EQUAL(board, test_cp.getBoard());
35+
CHECK(board==test_cp.getBoard());
3636
CHECK_EQUAL(2, test_cp.getVictoryPoints());
3737
}
3838

@@ -43,7 +43,7 @@ TEST(Wonder_constructor){
4343

4444
Wonder test_cp(board, loc, test_player);
4545
CHECK_EQUAL(loc, test_cp.getLocation());
46-
CHECK_EQUAL(board, test_cp.getBoard());
46+
CHECK(board==test_cp.getBoard());
4747
CHECK_EQUAL(10, test_cp.getVictoryPoints());
4848
}
4949

@@ -55,7 +55,7 @@ TEST(City_upgrade_constructor){
5555
Settlement intermediate_cp(board, loc, test_player);
5656
City test_cp(intermediate_cp);
5757
CHECK_EQUAL(loc, test_cp.getLocation());
58-
CHECK_EQUAL(board, test_cp.getBoard());
58+
CHECK(board==test_cp.getBoard());
5959
CHECK_EQUAL(2, test_cp.getVictoryPoints());
6060
}
6161

@@ -67,7 +67,7 @@ TEST(Wonder_upgrade_settlement_constructor){
6767
Settlement intermediate_cp(board, loc, test_player);
6868
Wonder test_cp(intermediate_cp);
6969
CHECK_EQUAL(loc, test_cp.getLocation());
70-
CHECK_EQUAL(board, test_cp.getBoard());
70+
CHECK(board==test_cp.getBoard());
7171
CHECK_EQUAL(10, test_cp.getVictoryPoints());
7272
}
7373

@@ -79,7 +79,7 @@ TEST(Wonder_upgrade_city_constructor){
7979
City intermediate_cp(board, loc, test_player);
8080
Wonder test_cp(intermediate_cp);
8181
CHECK_EQUAL(loc, test_cp.getLocation());
82-
CHECK_EQUAL(board, test_cp.getBoard());
82+
CHECK(board==test_cp.getBoard());
8383
CHECK_EQUAL(10, test_cp.getVictoryPoints());
8484
}
8585

0 commit comments

Comments
 (0)