Skip to content

Commit b43a826

Browse files
acronym: update tests to 1.7.0 (exercism#1649)
Add underscore emphasis test.
1 parent edfaff6 commit b43a826

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exercises/acronym/acronym_test.py

+4-1
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.6.0
6+
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.7.0
77

88
class AcronymTest(unittest.TestCase):
99
def test_basic(self):
@@ -34,6 +34,9 @@ def test_consecutive_delimiters(self):
3434
def test_apostrophes(self):
3535
self.assertEqual(abbreviate("Halley's Comet"), 'HC')
3636

37+
def test_underscore_emphasis(self):
38+
self.assertEqual(abbreviate("The Road _Not_ Taken"), 'TRNT')
39+
3740

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

0 commit comments

Comments
 (0)