Commit ca84d65c authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent d9fdb51d
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment