Flipping and sliding puzzles work fine, i'm thinking on new puzzles :)
[puzzles.git] / test / testing / SlidingTest.java
blob77c7c2a74e4774162f81a329a5aef0cfe1d2b627
1 /*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
7 package testing;
9 import com.github.puzzles.core.SlidingPuzzle;
10 import com.github.puzzles.test.Main;
11 import static org.hamcrest.CoreMatchers.is;
12 import org.junit.After;
13 import org.junit.AfterClass;
14 import org.junit.Before;
15 import org.junit.BeforeClass;
16 import org.junit.Test;
17 import static org.junit.Assert.*;
19 /**
21 * @author root
23 public class SlidingTest {
25 SlidingPuzzle sp = new SlidingPuzzle(5, 5);
27 public SlidingTest() {
30 @BeforeClass
31 public static void setUpClass() {
34 @AfterClass
35 public static void tearDownClass() {
38 @Before
39 public void setUp() {
42 @After
43 public void tearDown() {
46 @Test
47 public void checkTest(){
49 Main.printPuzzle(sp);
50 //assertThat(sp.check(), is(true));
53 @Test
54 public void slidTest(){