From 97ecfe7e03ad139a422bd7995c8399d26374d0b8 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 29 Jun 2002 19:27:42 +0000 Subject: [PATCH] a couple more tests [SVN r14262] --- test/list.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/list.cpp b/test/list.cpp index 714efc7e..4ad285b4 100644 --- a/test/list.cpp +++ b/test/list.cpp @@ -108,6 +108,15 @@ void exercise(list x, object y, object print) print("reverse sorted:"); x.sort(handle<>(make_function(notcmp))); print(x); + + list w; + w.append(5); + w.append(6); + w += "hi"; + assert(w[0] == 5); + assert(w[1] == 6); + assert(w[2] == 'h'); + assert(w[3] == 'i'); } BOOST_PYTHON_MODULE_INIT(list_ext)