summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-08-06 19:03:56 (GMT)
committerBarry Warsaw <barry@python.org>2002-08-06 19:03:56 (GMT)
commite06741704eeb76325717625fdc3c74f6acc815fc (patch)
treee85f69ed267a8c00ee49aadec23d5472c08cc5ed /Lib/test/test_unicode.py
parent6a043f3fe8394fe8f8178df313ccf7af69ba50b9 (diff)
downloadcpython-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/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py1
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: