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 73173d9 commit 5ebabc3Copy full SHA for 5ebabc3
1 file changed
exercises/acronym/acronym_test.py
@@ -3,7 +3,7 @@
3
from acronym import abbreviate
4
5
6
-# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0
+# Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0
7
8
class AcronymTest(unittest.TestCase):
9
def test_basic(self):
@@ -22,6 +22,11 @@ def test_punctuation_without_whitespace(self):
22
self.assertEqual(
23
abbreviate('Complementary metal-oxide semiconductor'), 'CMOS')
24
25
+ def test_very_long_abbreviation(self):
26
+ self.assertEqual(
27
+ abbreviate("Rolling On The Floor Laughing So Hard That "
28
+ "My Dogs Came Over And Licked Me"), "ROTFLSHTMDCOALM")
29
+
30
31
if __name__ == '__main__':
32
unittest.main()
0 commit comments