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 /* ************************************************************************* */
TEST(Serialization, symbolic_graph)
static int runAllTests(TestResult &result)
Definition: Half.h:150
#define EXPECT(condition)
Definition: Test.h:151
traits
Definition: chartTesting.h:28


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