Skip to content

Instantly share code, notes, and snippets.

@danielvamosi
Created December 4, 2015 09:21
Show Gist options
  • Save danielvamosi/3bf999504af5c3a508aa to your computer and use it in GitHub Desktop.
Save danielvamosi/3bf999504af5c3a508aa to your computer and use it in GitHub Desktop.
def is_complete(numbers):
if len(numbers) != 9:
return False
import sudoku_checker
import unittest
class TestSudokuChecker(unittest.TestCase):
def test_is_complete_empty(self):
test_input = []
expected = False
actual = sudoku_checker.is_complete(test_input)
self.assertEqual(expected, actual, "The row is empty.")
def test_is_complete_too_short(self):
test_input = [1, 2, 3, 4, 5, 6, 7, 8]
expected = False
actual = sudoku_checker.is_complete(test_input)
self.assertEqual(expected, actual, "The row is too short.")
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment