Skip to content
Snippets Groups Projects
Commit bc5afd03 authored by Joris Vaillant's avatar Joris Vaillant Committed by Justin Carpentier
Browse files

core: add regression tests

parent 6858b4eb
No related branches found
No related tags found
No related merge requests found
Pipeline #32772 passed with warnings
......@@ -30,6 +30,10 @@ void setZero(std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
}
}
struct CustomTestStruct {
bool operator==(const CustomTestStruct &) const { return true; }
};
BOOST_PYTHON_MODULE(std_vector) {
namespace bp = boost::python;
using namespace eigenpy;
......@@ -58,4 +62,10 @@ BOOST_PYTHON_MODULE(std_vector) {
.def(boost::python::vector_indexing_suite<
std::vector<Eigen::Matrix2d> >());
exposeStdVectorEigenSpecificType<Eigen::Matrix2d>("Mat2d");
// Test API regression:
// Exposing a `std::vector` with documentation doesn't clash with
// exposing a `std::vector` with a visitor
StdVectorPythonVisitor<std::vector<CustomTestStruct> >::expose(
"StdVec_CustomTestStruct", "some documentation");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment