Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion exercises/acronym/acronym_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from acronym import abbreviate


# Tests adapted from `problem-specifications//canonical-data.json` @ v1.6.0
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.7.0

class AcronymTest(unittest.TestCase):
def test_basic(self):
Expand Down Expand Up @@ -34,6 +34,9 @@ def test_consecutive_delimiters(self):
def test_apostrophes(self):
self.assertEqual(abbreviate("Halley's Comet"), 'HC')

def test_underscore_emphasis(self):
self.assertEqual(abbreviate("The Road _Not_ Taken"), 'TRNT')


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