summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2002-08-22 21:27:05 (GMT)
committerGreg Ward <gward@python.net>2002-08-22 21:27:05 (GMT)
commitc6edb3726833207887356e9ceedf7fbabf404f5c (patch)
tree2deae3d37c4d3cf1512720308edfa31e244e5009 /Lib/test
parent715debd3d1cba8aad84e3492854a3e7860557e86 (diff)
downloadcpython-c6edb3726833207887356e9ceedf7fbabf404f5c.zip
cpython-c6edb3726833207887356e9ceedf7fbabf404f5c.tar.gz
cpython-c6edb3726833207887356e9ceedf7fbabf404f5c.tar.bz2
Test an em-dash with adjacent punctuation.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_textwrap.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py
index 36df52a..fc5d0cc 100644
--- a/Lib/test/test_textwrap.py
+++ b/Lib/test/test_textwrap.py
@@ -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!