new test case that is broken as of rev 908
authorStefan Behnel <scoder@users.berlios.de>
Sun, 3 Aug 2008 12:39:40 +0000 (14:39 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 3 Aug 2008 12:39:40 +0000 (14:39 +0200)
tests/run/builtinnames.pyx [new file with mode: 0644]

diff --git a/tests/run/builtinnames.pyx b/tests/run/builtinnames.pyx
new file mode 100644 (file)
index 0000000..ca41bbc
--- /dev/null
@@ -0,0 +1,28 @@
+__doc__ = u"""
+>>> test_c(u'abc')
+fileabc
+typeabc
+>>> print test_file_py(u'abc')
+abc
+>>> print range(u'abc')
+rangeabc
+"""
+
+
+def test_file_py(file):
+    return file
+
+cdef test_file_c(file):
+    return u'file' + file
+
+
+def range(arg):
+    return u'range' + arg
+
+cdef type(arg):
+    return u'type' + arg
+
+
+def test_c(arg):
+    print test_file_c(arg)
+    print type(arg)