From cc12d89f5c3ce1912bc2c7f56402aeeea3ee69f8 Mon Sep 17 00:00:00 2001 From: mRcfps <1402491442@qq.com> Date: Fri, 16 Feb 2018 14:22:37 +0800 Subject: [PATCH] acronym: update tests to v1.3.0 * Remove outdated test case * Rename test method `test_hyphenated` --- exercises/acronym/acronym_test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exercises/acronym/acronym_test.py b/exercises/acronym/acronym_test.py index b2d92e2bc4..5c25fffe37 100644 --- a/exercises/acronym/acronym_test.py +++ b/exercises/acronym/acronym_test.py @@ -3,7 +3,7 @@ from acronym import abbreviate -# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0 +# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0 class AcronymTest(unittest.TestCase): def test_basic(self): @@ -16,12 +16,9 @@ def test_punctuation(self): self.assertEqual(abbreviate('First In, First Out'), 'FIFO') def test_all_caps_words(self): - self.assertEqual(abbreviate('PHP: Hypertext Preprocessor'), 'PHP') - - def test_non_acronym_all_caps_word(self): self.assertEqual(abbreviate('GNU Image Manipulation Program'), 'GIMP') - def test_hyphenated(self): + def test_punctuation_without_whitespace(self): self.assertEqual( abbreviate('Complementary metal-oxide semiconductor'), 'CMOS')