testSerializationSymbolic.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 
23 
24 using namespace std;
25 using namespace gtsam;
26 using namespace gtsam::serializationTestHelpers;
27 
28 /* ************************************************************************* */
29 TEST (Serialization, symbolic_graph) {
30  EXPECT(equalsObj(asiaGraph));
31  EXPECT(equalsXML(asiaGraph));
32  EXPECT(equalsBinary(asiaGraph));
33 }
34 
35 /* ************************************************************************* */
36 TEST (Serialization, symbolic_bn) {
37  EXPECT(equalsObj(asiaBayesNet));
38  EXPECT(equalsXML(asiaBayesNet));
39  EXPECT(equalsBinary(asiaBayesNet));
40 }
41 
42 /* ************************************************************************* */
43 TEST (Serialization, symbolic_bayes_tree ) {
44  EXPECT(equalsObj(asiaBayesTree));
45  EXPECT(equalsXML(asiaBayesTree));
46  EXPECT(equalsBinary(asiaBayesTree));
47 }
48 
49 /* ************************************************************************* */
50 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
51 /* ************************************************************************* */
TestRegistry::runAllTests
static int runAllTests(TestResult &result)
Definition: TestRegistry.cpp:27
EXPECT
#define EXPECT(condition)
Definition: Test.h:150
TestHarness.h
main
int main()
Definition: testSerializationSymbolic.cpp:50
serializationTestHelpers.h
TestResult
Definition: TestResult.h:26
gtsam
traits
Definition: SFMdata.h:40
symbolicExampleGraphs.h
std
Definition: BFloat16.h:88
TEST
TEST(Serialization, symbolic_graph)
Definition: testSerializationSymbolic.cpp:29


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:08:34