Kaydet (Commit) e0674170 authored tarafından Barry Warsaw's avatar Barry Warsaw

Added a test for PyUnicode_Contains() taking into account the width of

Py_UNICODE.
üst 6a043f3f
...@@ -413,6 +413,7 @@ vereq(('a' in (1,None,'a')), True) ...@@ -413,6 +413,7 @@ vereq(('a' in (1,None,'a')), True)
vereq(('a' in (1,None,u'a')), True) vereq(('a' in (1,None,u'a')), True)
vereq(('a' in ('x',1,u'y')), False) vereq(('a' in ('x',1,u'y')), False)
vereq(('a' in ('x',1,None)), False) vereq(('a' in ('x',1,None)), False)
vereq(u'abcd' in u'abcxxxx', False)
print 'done.' print 'done.'
# Formatting: # Formatting:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment