@@ -20,7 +20,7 @@ TEST(Settlement_constructor){
2020 Player& test_player = board.getPlayer (0 );
2121
2222 Settlement test_cp (board, loc, test_player);
23- CHECK_EQUAL (loc, test_cp.getLocation ());
23+ CHECK (loc== test_cp.getLocation ());
2424 CHECK (board==test_cp.getBoard ());
2525 CHECK_EQUAL (1 , test_cp.getVictoryPoints ());
2626}
@@ -31,7 +31,7 @@ TEST(City_constructor){
3131 Player& test_player = board.getPlayer (0 );
3232
3333 City test_cp (board, loc, test_player);
34- CHECK_EQUAL (loc, test_cp.getLocation ());
34+ CHECK (loc== test_cp.getLocation ());
3535 CHECK (board==test_cp.getBoard ());
3636 CHECK_EQUAL (2 , test_cp.getVictoryPoints ());
3737}
@@ -42,7 +42,7 @@ TEST(Wonder_constructor){
4242 Player& test_player = board.getPlayer (0 );
4343
4444 Wonder test_cp (board, loc, test_player);
45- CHECK_EQUAL (loc, test_cp.getLocation ());
45+ CHECK (loc== test_cp.getLocation ());
4646 CHECK (board==test_cp.getBoard ());
4747 CHECK_EQUAL (10 , test_cp.getVictoryPoints ());
4848}
@@ -54,7 +54,7 @@ TEST(City_upgrade_constructor){
5454
5555 Settlement intermediate_cp (board, loc, test_player);
5656 City test_cp (intermediate_cp);
57- CHECK_EQUAL (loc, test_cp.getLocation ());
57+ CHECK (loc== test_cp.getLocation ());
5858 CHECK (board==test_cp.getBoard ());
5959 CHECK_EQUAL (2 , test_cp.getVictoryPoints ());
6060}
@@ -66,7 +66,7 @@ TEST(Wonder_upgrade_settlement_constructor){
6666
6767 Settlement intermediate_cp (board, loc, test_player);
6868 Wonder test_cp (intermediate_cp);
69- CHECK_EQUAL (loc, test_cp.getLocation ());
69+ CHECK (loc== test_cp.getLocation ());
7070 CHECK (board==test_cp.getBoard ());
7171 CHECK_EQUAL (10 , test_cp.getVictoryPoints ());
7272}
@@ -78,7 +78,7 @@ TEST(Wonder_upgrade_city_constructor){
7878
7979 City intermediate_cp (board, loc, test_player);
8080 Wonder test_cp (intermediate_cp);
81- CHECK_EQUAL (loc, test_cp.getLocation ());
81+ CHECK (loc== test_cp.getLocation ());
8282 CHECK (board==test_cp.getBoard ());
8383 CHECK_EQUAL (10 , test_cp.getVictoryPoints ());
8484}
0 commit comments