@@ -90,16 +90,17 @@ TEST(RoadBuildingCard){
9090 test_board.PlaceSettlement (Coordinate (0 ,0 ), test_player);
9191 std::unique_ptr<DevelopmentCard> test_card = std::unique_ptr<DevelopmentCard>(new RoadBuildingCard ());
9292
93- test_player.addOre (3 );
94- test_player.addWheat (3 );
95- test_player.addWool (3 );
93+ test_player.addOre (4 );
94+ test_player.addWheat (4 );
95+ test_player.addWool (4 );
96+ test_player.buyCard (test_card);
9697 test_player.buyCard (test_card);
9798 test_player.buyCard (test_card);
9899 test_player.buyCard (test_card);
99100
100-
101+ testRoadBuildingCard (test_player, true , test_board, Coordinate ( 0 , 0 ), Coordinate (- 1 , 1 ), Coordinate (- 1 , 1 ), Coordinate (- 1 , 2 ));
101102 testRoadBuildingCard (test_player, true , test_board, Coordinate (0 ,0 ), Coordinate (1 ,0 ), Coordinate (1 ,0 ), Coordinate (1 ,1 ));
102- testRoadBuildingCard (test_player, true , test_board, Coordinate (0 ,2 ), Coordinate (1 ,1 ), Coordinate (- 1 ,1 ), Coordinate (0 , 0 ));
103+ testRoadBuildingCard (test_player, true , test_board, Coordinate (0 ,2 ), Coordinate (1 ,1 ), Coordinate (1 ,1 ), Coordinate (2 , 1 ));
103104 testRoadBuildingCard (test_player, true , test_board, Coordinate (1 ,3 ), Coordinate (0 ,3 ), Coordinate (0 ,3 ), Coordinate (0 ,2 ));
104105
105106 testRoadBuildingCard (test_player, false , test_board, Coordinate (-500 ,200 ), Coordinate (100 ,340 ), Coordinate (21123 ,12312 ), Coordinate (343 ,321 ));
0 commit comments