[pypy-commit] pypy default: add one passing assert
antocuni
noreply at buildbot.pypy.org
Thu Jul 28 15:24:20 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r46039:764ca7f1f901
Date: 2011-07-28 15:23 +0200
http://bitbucket.org/pypy/pypy/changeset/764ca7f1f901/
Log: add one passing assert
diff --git a/pypy/module/_ffi/test/test__ffi.py b/pypy/module/_ffi/test/test__ffi.py
--- a/pypy/module/_ffi/test/test__ffi.py
+++ b/pypy/module/_ffi/test/test__ffi.py
@@ -231,6 +231,7 @@
# first, try automatic conversion from strings and unicode
assert mystrlen('foobar') == 6
assert mystrlen(u'foobar') == 6
+ assert mystrlen(u'ab\u2070') == 3
# then, try to pass an explicit pointer
UniCharArray = _rawffi.Array('u')
mystr = UniCharArray(7, u'foobar')
More information about the pypy-commit
mailing list