diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-06 23:08:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-06 23:08:51 (GMT) |
commit | ca84d65ca7bdb8e7f0dd4a91d5b6b10fc5191950 (patch) | |
tree | 729ae8a5af7d6b57cbafc560c45564a6e23a01ca | |
parent | d9fdb51df6dc5c9023bcf63996c48162c3770017 (diff) | |
download | cpython-ca84d65ca7bdb8e7f0dd4a91d5b6b10fc5191950.zip cpython-ca84d65ca7bdb8e7f0dd4a91d5b6b10fc5191950.tar.gz cpython-ca84d65ca7bdb8e7f0dd4a91d5b6b10fc5191950.tar.bz2 |
Expanded the unittests for the new width sensitive PyUnicode_Contains().
-rw-r--r-- | Lib/test/test_unicode.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index c2a31c7..429b673 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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: |