From 8e051569089d125cec14c826d68f390c0b9a180f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 17 Nov 2013 11:59:19 +0100 Subject: [PATCH] move old list test from broken into list.pyx --- tests/broken/r_builtinlist.pyx | 6 ------ tests/run/list.pyx | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 tests/broken/r_builtinlist.pyx diff --git a/tests/broken/r_builtinlist.pyx b/tests/broken/r_builtinlist.pyx deleted file mode 100644 index 3fa2a21..0000000 --- a/tests/broken/r_builtinlist.pyx +++ /dev/null @@ -1,6 +0,0 @@ -def f(): - cdef list l - l = list() - l.append("second") - l.insert(0, "first") - return l diff --git a/tests/run/list.pyx b/tests/run/list.pyx index 02fdc09..e51272a 100644 --- a/tests/run/list.pyx +++ b/tests/run/list.pyx @@ -77,6 +77,16 @@ def test_list_append(): l1.append(4) return l1 +def test_list_append_insert(): + """ + >>> test_list_append_insert() + ['first', 'second'] + """ + cdef list l = [] + l.append("second") + l.insert(0, "first") + return l + def test_list_pop(): """ >>> test_list_pop() -- 2.7.4