Skip to content

Commit

Permalink
isogram: update tests to version 1.2.0 (#1032)
Browse files Browse the repository at this point in the history
* isogram: update tests to version 1.2.0 (#1016)

* isogram: Ref problem-specification in test case
  • Loading branch information
abhijitparida authored and Nathan Parsons committed Oct 25, 2017
1 parent 8b90343 commit a92c358
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions exercises/isogram/isogram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from isogram import is_isogram


# test cases adapted from `x-common//canonical-data.json` @ version: 1.1.0
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0

class TestIsogram(unittest.TestCase):

Expand All @@ -25,15 +25,17 @@ def test_word_with_duplicated_character_in_mixed_case(self):
def test_hypothetical_isogrammic_word_with_hyphen(self):
self.assertIs(is_isogram("thumbscrew-japingly"), True)

def test_isogram_with_duplicated_non_letter_character(self):
self.assertIs(is_isogram("Hjelmqvist-Gryb-Zock-Pfund-Wax"), True)
def test_isogram_with_duplicated_hyphen(self):
self.assertIs(is_isogram("six-year-old"), True)

def test_made_up_name_that_is_an_isogram(self):
self.assertIs(is_isogram("Emily Jung Schwartzkopf"), True)

def test_duplicated_character_in_the_middle(self):
self.assertIs(is_isogram("accentor"), False)

# Additional tests for this track

def test_isogram_with_duplicated_letter_and_nonletter_character(self):
self.assertIs(is_isogram("Aleph Bot Chap"), False)

Expand Down

0 comments on commit a92c358

Please sign in to comment.