PiezasTest.cpp
TEST(PiezasTest, X_win)
{
  Piezas bb = Piezas();

  bb.dropPiece(0); //X
  bb.dropPiece(1); //O
  bb.dropPiece(0); //X
  bb.dropPiece(2); //O
  bb.dropPiece(0); //X
  bb.dropPiece(3); //O
  bb.dropPiece(1); //X
  bb.dropPiece(1); //O
  bb.dropPiece(2); //X
  bb.dropPiece(2); //O
  bb.dropPiece(3); //X
  bb.dropPiece(3); //O

  Piece state = bb.gameState();
  ASSERT_EQ(state,X);


}
//check for winner, X in this case will be winner
check for winner, X in this case will be winner
check for winner X in this case will be winner
TEST(PiezasTest, X_win)
{
  Piezas bb = Piezas();
  bb.dropPiece(0); 
  bb.dropPiece(1); 
  bb.dropPiece(0); 
  bb.dropPiece(2); 
  bb.dropPiece(0); 
  bb.dropPiece(3); 
  bb.dropPiece(1); 
  bb.dropPiece(1); 
  bb.dropPiece(2); 
  bb.dropPiece(2); 
  bb.dropPiece(3); 
  bb.dropPiece(3); 
  Piece state = bb.gameState();
  ASSERT_EQ(state,X);
}
TEST ( PiezasTest , X_win ) { Piezas bb = Piezas ( ) ; bb . dropPiece ( 0 ) ; bb . dropPiece ( 1 ) ; bb . dropPiece ( 0 ) ; bb . dropPiece ( 2 ) ; bb . dropPiece ( 0 ) ; bb . dropPiece ( 3 ) ; bb . dropPiece ( 1 ) ; bb . dropPiece ( 1 ) ; bb . dropPiece ( 2 ) ; bb . dropPiece ( 2 ) ; bb . dropPiece ( 3 ) ; bb . dropPiece ( 3 ) ; Piece state = bb . gameState ( ) ; ASSERT_EQ ( state , X ) ; }
check for winner, X in this case will be winner
check for winner X in this case will be winner
//X //O //X //O //X //O //X //O //X //O //X //O