From 3780a81c188b4d36e5e3b2d1349dc0ebcc1988af Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 7 Nov 2010 22:18:24 +0100 Subject: [PATCH] extended test case --- tests/run/unicodemethods.pyx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/run/unicodemethods.pyx b/tests/run/unicodemethods.pyx index 3c0cf6ae..12da0844 100644 --- 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]]) -- 2.26.2