Add test
parent
1292d324ff
commit
cd9d03668f
|
|
@ -127,6 +127,12 @@ class MyFactor {
|
||||||
// and a typedef specializing it
|
// and a typedef specializing it
|
||||||
typedef MyFactor<gtsam::Pose2, Matrix> MyFactorPosePoint2;
|
typedef MyFactor<gtsam::Pose2, Matrix> MyFactorPosePoint2;
|
||||||
|
|
||||||
|
// A class with integer template arguments
|
||||||
|
template<N = {3,12}>
|
||||||
|
class MyVector {
|
||||||
|
MyVector();
|
||||||
|
};
|
||||||
|
|
||||||
// comments at the end!
|
// comments at the end!
|
||||||
|
|
||||||
// even more comments at the end!
|
// even more comments at the end!
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ TEST( wrap, Small ) {
|
||||||
TEST( wrap, Geometry ) {
|
TEST( wrap, Geometry ) {
|
||||||
string markup_header_path = topdir + "/wrap/tests";
|
string markup_header_path = topdir + "/wrap/tests";
|
||||||
Module module(markup_header_path.c_str(), "geometry",enable_verbose);
|
Module module(markup_header_path.c_str(), "geometry",enable_verbose);
|
||||||
EXPECT_LONGS_EQUAL(7, module.classes.size());
|
EXPECT_LONGS_EQUAL(9, module.classes.size());
|
||||||
|
|
||||||
// forward declarations
|
// forward declarations
|
||||||
LONGS_EQUAL(2, module.forward_declarations.size());
|
LONGS_EQUAL(2, module.forward_declarations.size());
|
||||||
|
|
@ -159,7 +159,7 @@ TEST( wrap, Geometry ) {
|
||||||
strvec exp_includes; exp_includes += "folder/path/to/Test.h";
|
strvec exp_includes; exp_includes += "folder/path/to/Test.h";
|
||||||
EXPECT(assert_equal(exp_includes, module.includes));
|
EXPECT(assert_equal(exp_includes, module.includes));
|
||||||
|
|
||||||
LONGS_EQUAL(7, module.classes.size());
|
LONGS_EQUAL(9, module.classes.size());
|
||||||
|
|
||||||
// Key for ReturnType::return_category
|
// Key for ReturnType::return_category
|
||||||
// CLASS = 1,
|
// CLASS = 1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue