Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca84d65

Browse files
committed
Expanded the unittests for the new width sensitive PyUnicode_Contains().
1 parent d9fdb51 commit ca84d65

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lib/test/test_unicode.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ def test_fixup(s):
414414
vereq(('a' in ('x',1,u'y')), False)
415415
vereq(('a' in ('x',1,None)), False)
416416
vereq(u'abcd' in u'abcxxxx', False)
417+
vereq((u'ab' in u'abcd'), True)
418+
vereq(('ab' in u'abc'), True)
419+
vereq((u'ab' in 'abc'), True)
420+
vereq((u'ab' in (1,None,u'ab')), True)
421+
vereq((u'' in u'abc'), True)
422+
vereq(('' in u'abc'), True)
417423
print 'done.'
418424

419425
# Formatting:

0 commit comments

Comments
 (0)