diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-13 14:11:56 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-13 14:11:56 (GMT) |
commit | e0243e24beee50f70f89fb2ecf3ac431e247040b (patch) | |
tree | 8d4214552896dd64f1e26f428da5f43b4ac5af96 /Lib/test | |
parent | 49fd1077bc88275c8f5a865f10440a41f27f2fe8 (diff) | |
download | cpython-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/test')
-rw-r--r-- | Lib/test/test_unicode.py | 8 |
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.' |