From: Greg Ward Date: Thu, 22 Aug 2002 21:27:05 +0000 (+0000) Subject: Test an em-dash with adjacent punctuation. X-Git-Tag: v2.3c1~4336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6edb3726833207887356e9ceedf7fbabf404f5c;p=thirdparty%2FPython%2Fcpython.git Test an em-dash with adjacent punctuation. --- diff --git a/Lib/test/test_textwrap.py b/Lib/test/test_textwrap.py index 36df52a1a3d2..fc5d0cc20244 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!