Ejemplo n.º 1
0
 // TODO: put your test cases here
 @Test
 public void testCase1() {
   Sudoku sudoku =
       new Sudoku(
           2,
           new int[][] {
             {0, 0, 0, 1},
             {2, 3, 0, 4},
             {0, 0, 0, 3},
             {4, 1, 0, 2}
           });
   assertEquals("...1\n23.4\n...3\n41.2\n", sudoku.toString());
   System.out.println(new Sudoku(3));
 }
Ejemplo n.º 2
0
 @Test
 public void testCase2() throws IOException, ParseException {
   Sudoku sudoku = Sudoku.fromFile(2, "samples\\sudoku_4x4.txt");
   assertEquals(".234\n341.\n214.\n.321\n", sudoku.toString());
 }