Skip to content

Commit 5ebabc3

Browse files
thomasjpfancmccandless
authored andcommitted
acronym: updates tests to v1.4.0 (exercism#1479)
Resolves exercism#1465
1 parent 73173d9 commit 5ebabc3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

exercises/acronym/acronym_test.py

Lines changed: 6 additions & 1 deletion
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.3.0
6+
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.4.0
77

88
class AcronymTest(unittest.TestCase):
99
def test_basic(self):
@@ -22,6 +22,11 @@ def test_punctuation_without_whitespace(self):
2222
self.assertEqual(
2323
abbreviate('Complementary metal-oxide semiconductor'), 'CMOS')
2424

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+
2530

2631
if __name__ == '__main__':
2732
unittest.main()

0 commit comments

Comments
 (0)