diff options
author | Barry Warsaw <barry@python.org> | 2002-08-06 19:03:56 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-08-06 19:03:56 (GMT) |
commit | e06741704eeb76325717625fdc3c74f6acc815fc (patch) | |
tree | e85f69ed267a8c00ee49aadec23d5472c08cc5ed /Lib | |
parent | 6a043f3fe8394fe8f8178df313ccf7af69ba50b9 (diff) | |
download | cpython-e06741704eeb76325717625fdc3c74f6acc815fc.zip cpython-e06741704eeb76325717625fdc3c74f6acc815fc.tar.gz cpython-e06741704eeb76325717625fdc3c74f6acc815fc.tar.bz2 |
Added a test for PyUnicode_Contains() taking into account the width of
Py_UNICODE.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index f38467a..c2a31c7 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: |