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: BFloat16.h:88
#define EXPECT(condition)
Definition: Test.h:150
traits
Definition: chartTesting.h:28


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:39:31