123456789101112131415 |
- import unittest
- from sandbox import ohno
- class test_ohno(unittest.TestCase):
- def test_simple(self):
- board = ohno.Board(4)
- board.set_initial([[-1, -1, -1, -1], [-1, -1, -1, -1], [-1, -1, -1, -1], [-1, -1, -1, -1]])
- solved = board.solve()
- self.assertEqual(len(solved), 1)
- if __name__ == "__main__":
- unittest.main()
|