Assert.assertFalse(fitnessFunction.isGoalState("56136477"));
}
@Test
public void test_getBoardForIndividual() {
NQueensBoard board = fitnessFunction.getBoardForIndividual("56136477");
Assert.assertEquals(" - - - - - - - - \n"
+ " - - Q - - - - - \n" + " - - - - - - - - \n"
+ " - - - Q - - - - \n" + " - - - - - Q - - \n"
+ " Q - - - - - - - \n" + " - Q - - Q - - - \n"
+ " - - - - - - Q Q \n", board.getBoardPic());
Assert.assertEquals("--------\n" + "--Q-----\n" + "--------\n"
+ "---Q----\n" + "-----Q--\n" + "Q-------\n" + "-Q--Q---\n"
+ "------QQ\n", board.toString());
}