Commit d70519e9 authored by thomaskmatthew's avatar thomaskmatthew
Browse files

updated a test case

parent 75ae2ca1
......@@ -239,6 +239,22 @@ class TestCrossword(TestCase):
expected = None
self.assertEqual(actual, expected)
def test_is_numbered_buggy_number(self):
crossword = Crossword((
('B', 'U', 'G', 'S'),
('U', 'N', 'I', 'T'),
('G', 'I', 'V', 'E'),
('S', 'T', 'E', 'M'),
), {
'BUGS': 'Informal name for software faults',
'UNIT': 'Very traceable software testing',
'GIVE': 'To make a present of something',
'STEM': 'Group of disciplines including SE',
})
self.assertTrue(crossword.is_numbered(0, 0))
def test_get_down_clue_text_at_end_of_word_and_column_is_negative_and_row_is_out_of_bounds(self):
crossword = Crossword((
(None, None, None, None, None, None),
......@@ -275,7 +291,7 @@ class TestCrossword(TestCase):
expected = 'Informal name for software faults'
self.assertEqual(actual, expected)
def test_is_numbered(self) :
def test_is_numbered(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......@@ -292,7 +308,7 @@ class TestCrossword(TestCase):
self.assertTrue(crossword.is_numbered(1, 2))
def test_is_numbered_passed(self) :
def test_is_numbered_passed(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......@@ -309,7 +325,7 @@ class TestCrossword(TestCase):
self.assertTrue(crossword.is_numbered(1, 1))
def test_is_numbered_false(self) :
def test_is_numbered_false(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......@@ -326,7 +342,7 @@ class TestCrossword(TestCase):
self.assertFalse(crossword.is_numbered(2, 2))
def test_is_numbered_false_bottom(self) :
def test_is_numbered_false_bottom(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......@@ -342,7 +358,8 @@ class TestCrossword(TestCase):
})
self.assertFalse(crossword.is_numbered(4, 2))
def test_is_numbered_false_right(self) :
def test_is_numbered_false_right(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......@@ -359,7 +376,7 @@ class TestCrossword(TestCase):
self.assertFalse(crossword.is_numbered(2, 4))
def test_is_numbered_false_none(self) :
def test_is_numbered_false_none(self):
crossword = Crossword((
(None, None, None, None, None, None),
(None, 'B', 'U', 'G', 'S', None),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment