testTestableAssertions.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
20 
21 using namespace gtsam;
22 
23 /* ************************************************************************* */
24 TEST( testTestableAssertions, optional ) {
25  typedef boost::optional<LieScalar> OptionalScalar;
26  LieScalar x(1.0);
27  OptionalScalar ox(x), dummy = boost::none;
28  EXPECT(assert_equal(ox, ox));
29  EXPECT(assert_equal(x, ox));
30  EXPECT(assert_equal(dummy, dummy));
31 }
32 
33 /* ************************************************************************* */
34 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
35 /* ************************************************************************* */
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
#define EXPECT(condition)
Definition: Test.h:151
int main()
traits
Definition: chartTesting.h:28
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Definition: Matrix.cpp:42
TEST(LPInitSolver, InfiniteLoopSingleVar)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:49:57