update test to comply with a cython wrapper's requirement: need an include for every class.
parent
2146aa140c
commit
e3918da95c
|
@ -6,6 +6,8 @@
|
||||||
#include <boost/archive/text_oarchive.hpp>
|
#include <boost/archive/text_oarchive.hpp>
|
||||||
|
|
||||||
#include <folder/path/to/Test.h>
|
#include <folder/path/to/Test.h>
|
||||||
|
#include <gtsam/geometry/Point2.h>
|
||||||
|
#include <gtsam/geometry/Point3.h>
|
||||||
|
|
||||||
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
||||||
typedef MyTemplate<Matrix> MyTemplateMatrix;
|
typedef MyTemplate<Matrix> MyTemplateMatrix;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <folder/path/to/Test.h>
|
#include <folder/path/to/Test.h>
|
||||||
|
#include <gtsam/geometry/Point2.h>
|
||||||
|
#include <gtsam/geometry/Point3.h>
|
||||||
|
|
||||||
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
||||||
typedef MyTemplate<Matrix> MyTemplateMatrix;
|
typedef MyTemplate<Matrix> MyTemplateMatrix;
|
||||||
|
|
|
@ -5,6 +5,7 @@ virtual class ns::OtherClass;
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
|
#include <gtsam/geometry/Point2.h>
|
||||||
class Point2 {
|
class Point2 {
|
||||||
Point2();
|
Point2();
|
||||||
Point2(double x, double y);
|
Point2(double x, double y);
|
||||||
|
@ -20,6 +21,7 @@ class Point2 {
|
||||||
void serializable() const; // Sets flag and creates export, but does not make serialization functions
|
void serializable() const; // Sets flag and creates export, but does not make serialization functions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include <gtsam/geometry/Point3.h>
|
||||||
class Point3 {
|
class Point3 {
|
||||||
Point3(double x, double y, double z);
|
Point3(double x, double y, double z);
|
||||||
double norm() const;
|
double norm() const;
|
||||||
|
|
|
@ -152,7 +152,10 @@ TEST( wrap, Geometry ) {
|
||||||
EXPECT(assert_equal("ns::OtherClass", module.forward_declarations[1].name()));
|
EXPECT(assert_equal("ns::OtherClass", module.forward_declarations[1].name()));
|
||||||
|
|
||||||
// includes
|
// includes
|
||||||
strvec exp_includes; exp_includes += "folder/path/to/Test.h";
|
strvec exp_includes;
|
||||||
|
exp_includes += "gtsam/geometry/Point2.h";
|
||||||
|
exp_includes += "gtsam/geometry/Point3.h";
|
||||||
|
exp_includes += "folder/path/to/Test.h";
|
||||||
EXPECT(assert_equal(exp_includes, module.includes));
|
EXPECT(assert_equal(exp_includes, module.includes));
|
||||||
|
|
||||||
LONGS_EQUAL(9, module.classes.size());
|
LONGS_EQUAL(9, module.classes.size());
|
||||||
|
|
Loading…
Reference in New Issue