package puzzle; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import puzzle.Puzzle.Direction; /** * Class holding JUnit 5 test cases to test {@link State} functionality. */ class StateTests { /** * Constructs a {@code State} and checks if moving in a legal direction * is allowed. */ @Test void canMoveSucceedTest() { //TODO: Complete test } /** * Constructs a {@code State} and checks if moving in an illegal direction * is not allowed. */ @Test void canMoveFailTest() { //TODO: Complete test } /** * Constructs a 2D array of {@code int} values and checks if cost * estimate is what it should be. */ @Test void costTest() { //TODO: Complete test } /** * Constructs a solved {@code State} and checks if it is solved. */ @Test void isSolvedSucceedTest() { //TODO: Complete test } /** * Constructs an unsolved {@code State} and checks that it is not solved. */ @Test void isSolvedFailTest() { //TODO: Complete test } }