Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dellaert committed Jan 31, 2022
1 parent 06fb941 commit 113fbf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions gtsam/discrete/tests/testDiscreteBayesTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,27 +243,27 @@ TEST(DiscreteBayesTree, Dot) {
string actual = self.bayesTree->dot();
EXPECT(actual ==
"digraph G{\n"
"0[label=\"13,11,6,7\"];\n"
"0[label=\"13, 11, 6, 7\"];\n"
"0->1\n"
"1[label=\"14 : 11,13\"];\n"
"1[label=\"14 : 11, 13\"];\n"
"1->2\n"
"2[label=\"9,12 : 14\"];\n"
"2[label=\"9, 12 : 14\"];\n"
"2->3\n"
"3[label=\"3 : 9,12\"];\n"
"3[label=\"3 : 9, 12\"];\n"
"2->4\n"
"4[label=\"2 : 9,12\"];\n"
"4[label=\"2 : 9, 12\"];\n"
"2->5\n"
"5[label=\"8 : 12,14\"];\n"
"5[label=\"8 : 12, 14\"];\n"
"5->6\n"
"6[label=\"1 : 8,12\"];\n"
"6[label=\"1 : 8, 12\"];\n"
"5->7\n"
"7[label=\"0 : 8,12\"];\n"
"7[label=\"0 : 8, 12\"];\n"
"1->8\n"
"8[label=\"10 : 13,14\"];\n"
"8[label=\"10 : 13, 14\"];\n"
"8->9\n"
"9[label=\"5 : 10,13\"];\n"
"9[label=\"5 : 10, 13\"];\n"
"8->10\n"
"10[label=\"4 : 10,13\"];\n"
"10[label=\"4 : 10, 13\"];\n"
"}");
}

Expand Down
4 changes: 2 additions & 2 deletions python/gtsam/tests/test_GaussianBayesNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
See LICENSE for the license information
Unit tests for Linear Factor Graphs.
Author: Frank Dellaert & Gerry Chen
Unit tests for Gaussian Bayes Nets.
Author: Frank Dellaert
"""
# pylint: disable=invalid-name, no-name-in-module, no-member

Expand Down
6 changes: 3 additions & 3 deletions python/gtsam/tests/test_GraphvizFormatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_swapped_axes(self):
graphviz_formatting.paperHorizontalAxis = gtsam.GraphvizFormatting.Axis.X
graphviz_formatting.paperVerticalAxis = gtsam.GraphvizFormatting.Axis.Y
self.assertEqual(self.graph.dot(self.values,
formatting=graphviz_formatting),
writer=graphviz_formatting),
textwrap.dedent(expected_result))

def test_factor_points(self):
Expand All @@ -100,7 +100,7 @@ def test_factor_points(self):
graphviz_formatting.plotFactorPoints = False

self.assertEqual(self.graph.dot(self.values,
formatting=graphviz_formatting),
writer=graphviz_formatting),
textwrap.dedent(expected_result))

def test_width_height(self):
Expand All @@ -127,7 +127,7 @@ def test_width_height(self):
graphviz_formatting.figureHeightInches = 10

self.assertEqual(self.graph.dot(self.values,
formatting=graphviz_formatting),
writer=graphviz_formatting),
textwrap.dedent(expected_result))


Expand Down

0 comments on commit 113fbf1

Please sign in to comment.