cython-devel

diff tests/run/unicodeliterals.pyx @ 399:e005b58d83b8

Fix cdef extern classes
author Robert Bradshaw <robertwb@math.washington.edu>
date Tue Apr 08 01:25:09 2008 -0700 (4 years ago)
parents 5e3ecc4b1cbe
children 4cb0e7014a92
line diff
1.1 --- a/tests/run/unicodeliterals.pyx Thu Mar 06 11:16:08 2008 +0100 1.2 +++ b/tests/run/unicodeliterals.pyx Tue Apr 08 01:25:09 2008 -0700 1.3 @@ -17,6 +17,27 @@ 1.4 u'\xf8' 1.5 >>> add 1.6 u'S\xf8k ik\xfc\xd6\xe4abc' 1.7 + >>> null 1.8 + u'\x00' 1.9 +""" + """ 1.10 + >>> len(sa) 1.11 + 3 1.12 + >>> len(ua) 1.13 + 3 1.14 + >>> len(b) 1.15 + 3 1.16 + >>> len(c) 1.17 + 6 1.18 + >>> len(d) 1.19 + 3 1.20 + >>> len(e) 1.21 + 10 1.22 + >>> len(f) 1.23 + 1 1.24 + >>> len(add) 1.25 + 12 1.26 + >>> len(null) 1.27 + 1 1.28 """ + u""" 1.29 >>> sa == 'abc' 1.30 True 1.31 @@ -34,6 +55,8 @@ 1.32 True 1.33 >>> add == u'Søk ik' + u'üÖä' + 'abc' 1.34 True 1.35 + >>> null == u'\\x00' # doctest needs a double slash here 1.36 + True 1.37 """ 1.38 1.39 sa = 'abc' 1.40 @@ -46,3 +69,4 @@ 1.41 f = u'\xf8' 1.42 1.43 add = u'Søk ik' + u'üÖä' + 'abc' 1.44 +null = u'\x00'