From 8b86626113f9a17a455cacad3c13a9c66eb62d5d Mon Sep 17 00:00:00 2001 From: dellaert Date: Tue, 4 Nov 2014 14:27:55 +0100 Subject: [PATCH] Added test --- .cproject | 102 ++++++++++++--------------- gtsam/slam/tests/testPriorFactor.cpp | 28 ++++++++ 2 files changed, 74 insertions(+), 56 deletions(-) create mode 100644 gtsam/slam/tests/testPriorFactor.cpp diff --git a/.cproject b/.cproject index 13912e713..11e1e2499 100644 --- a/.cproject +++ b/.cproject @@ -600,7 +600,6 @@ make - tests/testBayesTree.run true false @@ -608,7 +607,6 @@ make - testBinaryBayesNet.run true false @@ -656,7 +654,6 @@ make - testSymbolicBayesNet.run true false @@ -664,7 +661,6 @@ make - tests/testSymbolicFactor.run true false @@ -672,7 +668,6 @@ make - testSymbolicFactorGraph.run true false @@ -688,7 +683,6 @@ make - tests/testBayesTree true false @@ -1112,7 +1106,6 @@ make - testErrors.run true false @@ -1342,46 +1335,6 @@ true true - - make - -j5 - testBTree.run - true - true - true - - - make - -j5 - testDSF.run - true - true - true - - - make - -j5 - testDSFMap.run - true - true - true - - - make - -j5 - testDSFVector.run - true - true - true - - - make - -j5 - testFixedVector.run - true - true - true - make -j2 @@ -1464,6 +1417,7 @@ make + testSimulated2DOriented.run true false @@ -1503,6 +1457,7 @@ make + testSimulated2D.run true false @@ -1510,6 +1465,7 @@ make + testSimulated3D.run true false @@ -1523,6 +1479,46 @@ true true + + make + -j5 + testBTree.run + true + true + true + + + make + -j5 + testDSF.run + true + true + true + + + make + -j5 + testDSFMap.run + true + true + true + + + make + -j5 + testDSFVector.run + true + true + true + + + make + -j5 + testFixedVector.run + true + true + true + make -j5 @@ -1780,7 +1776,6 @@ cpack - -G DEB true false @@ -1788,7 +1783,6 @@ cpack - -G RPM true false @@ -1796,7 +1790,6 @@ cpack - -G TGZ true false @@ -1804,7 +1797,6 @@ cpack - --config CPackSourceConfig.cmake true false @@ -2579,7 +2571,6 @@ make - testGraph.run true false @@ -2587,7 +2578,6 @@ make - testJunctionTree.run true false @@ -2595,7 +2585,6 @@ make - testSymbolicBayesNetB.run true false @@ -2769,10 +2758,10 @@ true true - + make -j5 - testBetweenFactor.run + testPriorFactor.run true true true @@ -3115,6 +3104,7 @@ make + tests/testGaussianISAM2 true false diff --git a/gtsam/slam/tests/testPriorFactor.cpp b/gtsam/slam/tests/testPriorFactor.cpp new file mode 100644 index 000000000..b3e54bedb --- /dev/null +++ b/gtsam/slam/tests/testPriorFactor.cpp @@ -0,0 +1,28 @@ +/** + * @file testPriorFactor.cpp + * @brief Test PriorFactor + * @author Frank Dellaert + * @date Nov 4, 2014 + */ + +#include +#include +#include + +using namespace std; +using namespace gtsam; + +/* ************************************************************************* */ + +// Constructor +TEST(PriorFactor, Constructor) { + SharedNoiseModel model; + PriorFactor factor(1, LieScalar(1.0), model); +} + +/* ************************************************************************* */ +int main() { + TestResult tr; + return TestRegistry::runAllTests(tr); +} +/* ************************************************************************* */