Expanded the unittests for the new width sensitive PyUnicode_Contains().

This commit is contained in:
Raymond Hettinger 2002-08-06 23:08:51 +00:00
parent d9fdb51df6
commit ca84d65ca7
1 changed files with 6 additions and 0 deletions

View File

@ -414,6 +414,12 @@ vereq(('a' in (1,None,u'a')), True)
vereq(('a' in ('x',1,u'y')), False)
vereq(('a' in ('x',1,None)), False)
vereq(u'abcd' in u'abcxxxx', False)
vereq((u'ab' in u'abcd'), True)
vereq(('ab' in u'abc'), True)
vereq((u'ab' in 'abc'), True)
vereq((u'ab' in (1,None,u'ab')), True)
vereq((u'' in u'abc'), True)
vereq(('' in u'abc'), True)
print 'done.'
# Formatting: