From cd9d03668f59a7809b8b5503b99dc5aab9112820 Mon Sep 17 00:00:00 2001 From: dellaert Date: Thu, 22 Jan 2015 03:35:27 +0100 Subject: [PATCH] Add test --- wrap/tests/geometry.h | 6 ++++++ wrap/tests/testWrap.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wrap/tests/geometry.h b/wrap/tests/geometry.h index 69bc7e3be..376e39b62 100644 --- a/wrap/tests/geometry.h +++ b/wrap/tests/geometry.h @@ -127,6 +127,12 @@ class MyFactor { // and a typedef specializing it typedef MyFactor MyFactorPosePoint2; +// A class with integer template arguments +template +class MyVector { + MyVector(); +}; + // comments at the end! // even more comments at the end! diff --git a/wrap/tests/testWrap.cpp b/wrap/tests/testWrap.cpp index 1a9c82143..64469c7fd 100644 --- a/wrap/tests/testWrap.cpp +++ b/wrap/tests/testWrap.cpp @@ -148,7 +148,7 @@ TEST( wrap, Small ) { TEST( wrap, Geometry ) { string markup_header_path = topdir + "/wrap/tests"; 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 LONGS_EQUAL(2, module.forward_declarations.size()); @@ -159,7 +159,7 @@ TEST( wrap, Geometry ) { strvec exp_includes; exp_includes += "folder/path/to/Test.h"; EXPECT(assert_equal(exp_includes, module.includes)); - LONGS_EQUAL(7, module.classes.size()); + LONGS_EQUAL(9, module.classes.size()); // Key for ReturnType::return_category // CLASS = 1,