M.-A. Lemburg <mal@lemburg.com>:

Added test for Unicode string concatenation.
This commit is contained in:
Fred Drake 2000-04-13 14:11:56 +00:00
parent 49fd1077bc
commit e0243e24be
1 changed files with 8 additions and 0 deletions

View 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.'