]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
M.-A. Lemburg <mal@lemburg.com>:
authorFred Drake <fdrake@acm.org>
Thu, 13 Apr 2000 14:11:56 +0000 (14:11 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 13 Apr 2000 14:11:56 +0000 (14:11 +0000)
Added test for Unicode string concatenation.

Lib/test/test_unicode.py

index 58d6e840dad2d4f6be10ace43014f55aaf9ecac1..94b2a4f312ca2645e9433f63d909ab10fa7800a9 100644 (file)
@@ -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.'