Skip to content

Commit 97ecfe7

Browse files
committed
a couple more tests
[SVN r14262]
1 parent f30fde3 commit 97ecfe7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/list.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ void exercise(list x, object y, object print)
108108
print("reverse sorted:");
109109
x.sort(handle<>(make_function(notcmp)));
110110
print(x);
111+
112+
list w;
113+
w.append(5);
114+
w.append(6);
115+
w += "hi";
116+
assert(w[0] == 5);
117+
assert(w[1] == 6);
118+
assert(w[2] == 'h');
119+
assert(w[3] == 'i');
111120
}
112121

113122
BOOST_PYTHON_MODULE_INIT(list_ext)

0 commit comments

Comments
 (0)