mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Test an em-dash with adjacent punctuation.
This commit is contained in:
parent
715debd3d1
commit
c6edb37268
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ What a mess!
|
|||
"and", " ", "another!"]
|
||||
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):
|
||||
# Test that Unix-style command-line options are wrapped correctly.
|
||||
# Both Optik (OptionParser) and Docutils rely on this behaviour!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue