[Python-checkins] python/dist/src/Lib/test test_textwrap.py,1.13,1.14
gward@users.sourceforge.net
gward@users.sourceforge.net
Thu, 22 Aug 2002 14:27:07 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27873
Modified Files:
test_textwrap.py
Log Message:
Test an em-dash with adjacent punctuation.
Index: test_textwrap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_textwrap.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_textwrap.py 22 Aug 2002 21:16:25 -0000 1.13
--- test_textwrap.py 22 Aug 2002 21:27:05 -0000 1.14
***************
*** 167,170 ****
--- 167,176 ----
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.