Skip to content

Commit

Permalink
update pangram tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pheanex committed Nov 29, 2017
1 parent a2ade37 commit 9af3fd8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions exercises/pangram/pangram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
from pangram import is_pangram


# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0
# test cases adapted from `x-common//canonical-data.json` @ version: 1.3.0

class PangramTests(unittest.TestCase):
def test_sentence_empty(self):
self.assertIs(is_pangram(''), False)

def test_pangram_with_perfect_lower_case(self):
self.assertIs(
is_pangram('abcdefghijklmnopqrstuvwxyz'),
True)

def test_pangram_with_only_lower_case(self):
self.assertIs(
is_pangram('the quick brown fox jumps over the lazy dog'),
Expand All @@ -20,9 +25,9 @@ def test_missing_character_x(self):
'jeopardize five gunboats'),
False)

def test_another_missing_character_x(self):
def test_another_missing_character_h(self):
self.assertIs(
is_pangram('the quick brown fish jumps over the lazy dog'),
is_pangram('five boxing wizards jump quickly at it'),
False)

def test_pangram_with_underscores(self):
Expand All @@ -47,7 +52,7 @@ def test_pangram_with_mixedcase_and_punctuation(self):

def test_upper_and_lower_case_versions_of_the_same_character(self):
self.assertIs(
is_pangram('the quick brown fox jumped over the lazy FOX'),
is_pangram('the quick brown fox jumps over with lazy FX'),
False)


Expand Down

0 comments on commit 9af3fd8

Please sign in to comment.