[Python-checkins] CVS: python/dist/src/Lib/test test_unicode.py,1.39,1.40
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 21 Sep 2001 08:46:44 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv15166
Modified Files:
test_unicode.py
Log Message:
Add tests for repr() of strings containing string quotes as well.
Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** test_unicode.py 2001/09/21 15:36:41 1.39
--- test_unicode.py 2001/09/21 15:46:41 1.40
***************
*** 19,22 ****
--- 19,26 ----
verify(repr(u'\t') == "u'\\t'")
verify(repr(u'\b') == "u'\\x08'")
+ verify(repr(u"'\"") == """u'\\'"'""")
+ verify(repr(u"'\"") == """u'\\'"'""")
+ verify(repr(u"'") == '''u"'"''')
+ verify(repr(u'"') == """u'"'""")
def test(method, input, output, *args):