Example #1
0
 def test_iter_col(self):
     board = self.easy_board
     s = Sodoku(board)
     self.assertTrue({1, 5, 9, 6}, set(s.get_fixed(s.iter_col(4))))
     return
Example #2
0
 def test_iter_box(self):
     board = self.easy_board
     s = Sodoku(board)
     self.assertTrue({4, 5, 2}, set(s.get_fixed(s.iter_box(4, 4))))
     return
Example #3
0
 def test_iter_row(self):
     board = self.easy_board
     s = Sodoku(board)
     self.assertTrue({2, 5, 4}, set(s.get_fixed(s.iter_row(4))))
     return