mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
M.-A. Lemburg <mal@lemburg.com>:
Added test for Unicode string concatenation.
This commit is contained in:
parent
49fd1077bc
commit
e0243e24be
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user