We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abcc6b5 commit 496e06dCopy full SHA for 496e06d
1 file changed
exercises/acronym/acronym_test.py
@@ -3,8 +3,9 @@
3
from acronym import abbreviate
4
5
6
-class AcronymTest(unittest.TestCase):
+# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0
7
8
+class AcronymTest(unittest.TestCase):
9
def test_basic(self):
10
self.assertEqual('PNG', abbreviate('Portable Network Graphics'))
11
@@ -20,6 +21,9 @@ def test_punctuation(self):
20
21
def test_all_caps_words(self):
22
self.assertEqual('PHP', abbreviate('PHP: Hypertext Preprocessor'))
23
24
+ def test_non_acronym_all_caps_word(self):
25
+ self.assertEqual('GIMP', abbreviate('GNU Image Manipulation Program'))
26
+
27
def test_hyphenated(self):
28
self.assertEqual('CMOS', abbreviate('Complementary metal-oxide semiconductor'))
29
0 commit comments