]> granicus.if.org Git - python/commitdiff
Added a test for PyUnicode_Contains() taking into account the width of
authorBarry Warsaw <barry@python.org>
Tue, 6 Aug 2002 19:03:56 +0000 (19:03 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 6 Aug 2002 19:03:56 +0000 (19:03 +0000)
Py_UNICODE.

Lib/test/test_unicode.py

index f38467ad0d7305101513aa967f4fdf73f03bd243..c2a31c7595cce0c947b74d7226383cad6d6faba5 100644 (file)
@@ -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: