From: Barry Warsaw Date: Tue, 6 Aug 2002 19:03:56 +0000 (+0000) Subject: Added a test for PyUnicode_Contains() taking into account the width of X-Git-Tag: v2.3c1~4661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e06741704eeb76325717625fdc3c74f6acc815fc;p=python Added a test for PyUnicode_Contains() taking into account the width of Py_UNICODE. --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index f38467ad0d..c2a31c7595 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -413,6 +413,7 @@ vereq(('a' in (1,None,'a')), True) 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) print 'done.' # Formatting: