projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ec3d70
)
extended test case
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 7 Nov 2010 21:18:24 +0000
(22:18 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 7 Nov 2010 21:18:24 +0000
(22:18 +0100)
tests/run/unicodemethods.pyx
patch
|
blob
|
history
diff --git
a/tests/run/unicodemethods.pyx
b/tests/run/unicodemethods.pyx
index 3c0cf6ae5815faa66a0a1449f7286c3fe237b15d..12da08446522c7597ad88aef836e02ace4981ab9 100644
(file)
--- a/
tests/run/unicodemethods.pyx
+++ b/
tests/run/unicodemethods.pyx
@@
-217,6
+217,22
@@
def join_sep(l):
"""
return u'|'.join(l)
+@cython.test_assert_path_exists(
+ "//SimpleCallNode",
+ "//SimpleCallNode//NameNode")
+def join_unbound(unicode sep, l):
+ """
+ >>> l = text.split()
+ >>> len(l)
+ 8
+ >>> print( pipe_sep.join(l) )
+ ab|jd|sdflk|as|sa|sadas|asdas|fsdf
+ >>> print( join_unbound(pipe_sep, l) )
+ ab|jd|sdflk|as|sa|sadas|asdas|fsdf
+ """
+ join = unicode.join
+ return join(sep, l)
+
# unicode.startswith(s, prefix, [start, [end]])