Skip to content

Commit 245ab9a

Browse files
mrcfpscmccandless
authored andcommitted
acronym: update tests to v1.3.0 (exercism#1284)
* Remove outdated test case * Rename test method `test_hyphenated`
1 parent 86d15d2 commit 245ab9a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

exercises/acronym/acronym_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from acronym import abbreviate
44

55

6-
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0
6+
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0
77

88
class AcronymTest(unittest.TestCase):
99
def test_basic(self):
@@ -16,12 +16,9 @@ def test_punctuation(self):
1616
self.assertEqual(abbreviate('First In, First Out'), 'FIFO')
1717

1818
def test_all_caps_words(self):
19-
self.assertEqual(abbreviate('PHP: Hypertext Preprocessor'), 'PHP')
20-
21-
def test_non_acronym_all_caps_word(self):
2219
self.assertEqual(abbreviate('GNU Image Manipulation Program'), 'GIMP')
2320

24-
def test_hyphenated(self):
21+
def test_punctuation_without_whitespace(self):
2522
self.assertEqual(
2623
abbreviate('Complementary metal-oxide semiconductor'), 'CMOS')
2724

0 commit comments

Comments
 (0)