projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
497dcad
)
more unicode testing, also for null bytes
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 6 Mar 2008 11:11:11 +0000
(12:11 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 6 Mar 2008 11:11:11 +0000
(12:11 +0100)
tests/run/unicodeliterals.pyx
patch
|
blob
|
history
diff --git
a/tests/run/unicodeliterals.pyx
b/tests/run/unicodeliterals.pyx
index 3a0b5d06f0076a26a362e36fdb6bef02c7a79561..d0c4db8f69fcab242d279a3ca9ddce9156dae682 100644
(file)
--- a/
tests/run/unicodeliterals.pyx
+++ b/
tests/run/unicodeliterals.pyx
@@
-17,6
+17,27
@@
__doc__ = r"""
u'\xf8'
>>> add
u'S\xf8k ik\xfc\xd6\xe4abc'
+ >>> null
+ u'\x00'
+""" + """
+ >>> len(sa)
+ 3
+ >>> len(ua)
+ 3
+ >>> len(b)
+ 3
+ >>> len(c)
+ 6
+ >>> len(d)
+ 3
+ >>> len(e)
+ 10
+ >>> len(f)
+ 1
+ >>> len(add)
+ 12
+ >>> len(null)
+ 1
""" + u"""
>>> sa == 'abc'
True
@@
-34,6
+55,8
@@
__doc__ = r"""
True
>>> add == u'Søk ik' + u'üÖä' + 'abc'
True
+ >>> null == u'\\x00' # doctest needs a double slash here
+ True
"""
sa = 'abc'
@@
-46,3
+69,4
@@
e = u'\x03\x67\xf8\uf8d2Søk ik'
f = u'\xf8'
add = u'Søk ik' + u'üÖä' + 'abc'
+null = u'\x00'