mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
M.-A. Lemburg <mal@lemburg.com>:
Added test for Unicode string concatenation.
This commit is contained in:
parent
49fd1077bc
commit
e0243e24be
1 changed files with 8 additions and 0 deletions
|
@ -391,3 +391,11 @@ for encoding in (
|
||||||
print '*** codec for "%s" failed: %s' % (encoding, why)
|
print '*** codec for "%s" failed: %s' % (encoding, why)
|
||||||
|
|
||||||
print 'done.'
|
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.'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue