public void testRemoveIllegal() throws ChessParseError {
  Position pos=TextIO.readFEN("8/3k4/8/2n1rpP1/1P6/1NB5/2QP4/R3K2R w KQ f6 0 1");
  List<String> strMoves=getMoveList(pos,true);
  assertTrue(strMoves.contains("Qc2-e4"));
  assertTrue(strMoves.contains("Bc3xe5"));
  assertTrue(strMoves.contains("Ke1-d1"));
  assertTrue(strMoves.contains("Ke1-f1"));
  assertTrue(strMoves.contains("Ke1-f2"));
  assertEquals(5,strMoves.size());
}

public void testRemoveIllegal ( ) throws ChessParseError { Position pos = TextIO . readFEN ( "8/3k4/8/2n1rpP1/1P6/1NB5/2QP4/R3K2R w KQ f6 0 1" ) ; List < String > strMoves = getMoveList ( pos , true ) ; assertTrue ( strMoves . contains ( "Qc2-e4" ) ) ; assertTrue ( strMoves . contains ( "Bc3xe5" ) ) ; assertTrue ( strMoves . contains ( "Ke1-d1" ) ) ; assertTrue ( strMoves . contains ( "Ke1-f1" ) ) ; assertTrue ( strMoves . contains ( "Ke1-f2" ) ) ; assertEquals ( 5 , strMoves . size ( ) ) ; }
test of removeillegal method , of class movegen .
