2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-29 19:52:16 +00:00

a couple more tests

[SVN r14262]
This commit is contained in:
Dave Abrahams
2002-06-29 19:27:42 +00:00
parent f30fde3a52
commit 97ecfe7e03

View File

@@ -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)