extended test case
authorStefan Behnel <scoder@users.berlios.de>
Sun, 7 Nov 2010 21:18:24 +0000 (22:18 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 7 Nov 2010 21:18:24 +0000 (22:18 +0100)
tests/run/unicodemethods.pyx

index 3c0cf6ae5815faa66a0a1449f7286c3fe237b15d..12da08446522c7597ad88aef836e02ace4981ab9 100644 (file)
@@ -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]])