test_ohno.py 425 B

1234567891011121314151617
  1. import unittest
  2. import ohno
  3. class test_ohno(unittest.TestCase):
  4. def test_simple(self):
  5. board = ohno.Board(4)
  6. board.set_initial([[-1, -1, -1, -1],
  7. [-1, -1, -1, -1],
  8. [-1, -1, -1, -1],
  9. [-1, -1, -1, -1]])
  10. solved = board.solve()
  11. self.assertEqual(len(solved), 1)
  12. if __name__ == '__main__':
  13. unittest.main()