예제 #1
0
    def testDlxRow(self):
        dlxrow = sudoku.dlx_row(0, 0, 1)
        assert len(dlxrow) == 324
        assert sum(dlxrow) == 4

        assert dlxrow[0] == 1
        assert dlxrow[1] == 0
예제 #2
0
    def testDlxRow(self):
        dlxrow = sudoku.dlx_row(0, 0, 1)
        assert len(dlxrow) == 324
        assert sum(dlxrow) == 4

        assert dlxrow[0] == 1
        assert dlxrow[1] == 0
예제 #3
0
 def testDlxRowToRcv(self):
     dlxrow = sudoku.dlx_row(0, 0, 1)
     r, c, v = sudoku.dlx_row_to_rcv(dlxrow)
     assert 0 == r
     assert 0 == c
     assert 1 == v
예제 #4
0
 def testDlxRowToRcv(self):
     dlxrow = sudoku.dlx_row(0, 0, 1)
     r, c, v = sudoku.dlx_row_to_rcv(dlxrow)
     assert 0 == r
     assert 0 == c
     assert 1 == v