From cf68da0b19a6759a4a18e200e638ae56b5c65d2b Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Thu, 22 Jun 2006 13:33:46 +0000 Subject: [PATCH] added test for vector [SVN r34374] --- test/vector_indexing_suite.cpp | 5 +++++ test/vector_indexing_suite.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/test/vector_indexing_suite.cpp b/test/vector_indexing_suite.cpp index a2dd1403..0f9cd74c 100644 --- a/test/vector_indexing_suite.cpp +++ b/test/vector_indexing_suite.cpp @@ -53,5 +53,10 @@ BOOST_PYTHON_MODULE(vector_indexing_suite_ext) class_ >("BoolVec") .def(vector_indexing_suite >()) ; + + // vector of strings + class_ >("StringVec") + .def(vector_indexing_suite >()) + ; } diff --git a/test/vector_indexing_suite.py b/test/vector_indexing_suite.py index 302fc67c..5914472f 100644 --- a/test/vector_indexing_suite.py +++ b/test/vector_indexing_suite.py @@ -321,6 +321,12 @@ e >>> print_xvec(v) [ a b c d e f g h i j ] +##################################################################### +# vector of strings +##################################################################### +>>> sv = StringVec() +>>> sv.append('a') + ##################################################################### # END.... #####################################################################