From: Fred Drake Date: Thu, 13 Apr 2000 14:11:56 +0000 (+0000) Subject: M.-A. Lemburg : X-Git-Tag: v2.0b1~2041 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0243e24beee50f70f89fb2ecf3ac431e247040b;p=thirdparty%2FPython%2Fcpython.git M.-A. Lemburg : Added test for Unicode string concatenation. --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 58d6e840dad2..94b2a4f312ca 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -391,3 +391,11 @@ for encoding in ( print '*** codec for "%s" failed: %s' % (encoding, why) print 'done.' + +print 'Testing Unicode string concatenation...', +assert (u"abc" u"def") == u"abcdef" +assert ("abc" u"def") == u"abcdef" +assert (u"abc" "def") == u"abcdef" +assert (u"abc" u"def" "ghi") == u"abcdefghi" +assert ("abc" "def" u"ghi") == u"abcdefghi" +print 'done.'