summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-13 14:11:56 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-13 14:11:56 (GMT)
commite0243e24beee50f70f89fb2ecf3ac431e247040b (patch)
tree8d4214552896dd64f1e26f428da5f43b4ac5af96 /Lib
parent49fd1077bc88275c8f5a865f10440a41f27f2fe8 (diff)
downloadcpython-e0243e24beee50f70f89fb2ecf3ac431e247040b.zip
cpython-e0243e24beee50f70f89fb2ecf3ac431e247040b.tar.gz
cpython-e0243e24beee50f70f89fb2ecf3ac431e247040b.tar.bz2
M.-A. Lemburg <mal@lemburg.com>:
Added test for Unicode string concatenation.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicode.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 58d6e84..94b2a4f 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.'