From: Raymond Hettinger Date: Tue, 6 Aug 2002 23:08:51 +0000 (+0000) Subject: Expanded the unittests for the new width sensitive PyUnicode_Contains(). X-Git-Tag: v2.3c1~4650 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca84d65ca7bdb8e7f0dd4a91d5b6b10fc5191950;p=python Expanded the unittests for the new width sensitive PyUnicode_Contains(). --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index c2a31c7595..429b673d9f 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: