mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Expanded the unittests for the new width sensitive PyUnicode_Contains().
This commit is contained in:
parent
d9fdb51df6
commit
ca84d65ca7
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue