[Python-checkins] CVS: python/dist/src/Lib/test test_unicode.py,1.38,1.39

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 21 Sep 2001 08:36:43 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv12134

Modified Files:
	test_unicode.py 
Log Message:
Test basic functioning of unicode repr().  (If this breaks Jython,
please let me know and we'll figure out how to fix the test.)


Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** test_unicode.py	2001/09/20 12:53:13	1.38
--- test_unicode.py	2001/09/21 15:36:41	1.39
***************
*** 9,12 ****
--- 9,23 ----
  import sys
  
+ # Test basic sanity of repr()
+ verify(repr(u'abc') == "u'abc'")
+ verify(repr(u'ab\\c') == "u'ab\\\\c'")
+ verify(repr(u'ab\\') == "u'ab\\\\'")
+ verify(repr(u'\\c') == "u'\\\\c'")
+ verify(repr(u'\\') == "u'\\\\'")
+ verify(repr(u'\n') == "u'\\n'")
+ verify(repr(u'\r') == "u'\\r'")
+ verify(repr(u'\t') == "u'\\t'")
+ verify(repr(u'\b') == "u'\\x08'")
+ 
  def test(method, input, output, *args):
      if verbose: