Kaydet (Commit) c6edb372 authored tarafından Greg Ward's avatar Greg Ward

Test an em-dash with adjacent punctuation.

üst 715debd3
...@@ -166,6 +166,12 @@ What a mess! ...@@ -166,6 +166,12 @@ What a mess!
"and", " ", "another!"] "and", " ", "another!"]
self.check_split(self.wrapper, text, expect) self.check_split(self.wrapper, text, expect)
text = "and then--bam!--he was gone"
expect = ["and", " ", "then", "--", "bam!", "--",
"he", " ", "was", " ", "gone"]
self.check_split(self.wrapper, text, expect)
def test_unix_options (self): def test_unix_options (self):
# Test that Unix-style command-line options are wrapped correctly. # Test that Unix-style command-line options are wrapped correctly.
# Both Optik (OptionParser) and Docutils rely on this behaviour! # Both Optik (OptionParser) and Docutils rely on this behaviour!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment