Skip to content

Instantly share code, notes, and snippets.

@zmaril
Created February 19, 2014 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zmaril/9086900 to your computer and use it in GitHub Desktop.
Save zmaril/9086900 to your computer and use it in GitHub Desktop.
Simple bug hunting test
import unittest
from newMethod import GG,Key
class TestnewMethod(unittest.TestCase):
def test_GG(self):
r = GG(Key(8,[[99, 99, 99, 3, 99, 5, 6, 7], [99, 99, 99, 3, 99, 5, 6, 7], [99, 99, 99, 3, 99, 5, 6, 7], [99, 99, 99, 3, 99, 5, 6, 7], [99, 99\
, 99, 3, 99, 5, 6, 7], [99, 99, 99, 3, 99, 5, 6, 7], [99, 1, 99, 3, 99, 99, 6, 7], [99, 1, 99, 3, 99, 99, 6, 7]]))
self.assertEqual(r.solutions,80)
self.assertTrue(r.alternating)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment