26 using namespace gtsam;
44 Tree tree({{
"A", 2}}, std::vector<int>{1, 2});
46 using namespace serializationTestHelpers;
49 Tree outputObj = create<Tree>();
50 roundtrip<Tree>(
tree, outputObj);
54 Tree outputXml = create<Tree>();
55 roundtripXML<Tree>(
tree, outputXml);
59 Tree outputBinary = create<Tree>();
60 roundtripBinary<Tree>(
tree, outputBinary);
67 using namespace serializationTestHelpers;
72 EXPECT(equalsObj<DecisionTreeFactor::ADT>(
tree));
73 EXPECT(equalsXML<DecisionTreeFactor::ADT>(
tree));
74 EXPECT(equalsBinary<DecisionTreeFactor::ADT>(
tree));
77 EXPECT(equalsObj<DecisionTreeFactor>(
f));
78 EXPECT(equalsXML<DecisionTreeFactor>(
f));
79 EXPECT(equalsBinary<DecisionTreeFactor>(
f));
85 using namespace serializationTestHelpers;
90 EXPECT(equalsObj<DiscreteConditional>(conditional));
91 EXPECT(equalsXML<DiscreteConditional>(conditional));
92 EXPECT(equalsBinary<DiscreteConditional>(conditional));
95 EXPECT(equalsObj<DiscreteDistribution>(
P));
96 EXPECT(equalsXML<DiscreteDistribution>(
P));
97 EXPECT(equalsBinary<DiscreteDistribution>(
P));