Created
February 19, 2014 06:13
-
-
Save zmaril/9086900 to your computer and use it in GitHub Desktop.
Simple bug hunting test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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