fix printing tests

release/4.3a0
Varun Agrawal 2024-10-09 10:51:38 -04:00
parent 34bb1d0f34
commit caddc734c2
2 changed files with 18 additions and 19 deletions

View File

@ -104,13 +104,12 @@ TEST(HybridGaussianFactor, Keys) {
} }
/* ************************************************************************* */ /* ************************************************************************* */
TEST_DISABLED(HybridGaussianFactor, Printing) { TEST(HybridGaussianFactor, Printing) {
using namespace test_constructor; using namespace test_constructor;
HybridGaussianFactor hybridFactor(m1, {f10, f11}); HybridGaussianFactor hybridFactor(m1, {f10, f11});
std::string expected = std::string expected =
R"(HybridGaussianFactor R"(Hybrid [x1 x2; 1]{
Hybrid [x1 x2; 1]{
Choice(1) Choice(1)
0 Leaf : 0 Leaf :
A[x1] = [ A[x1] = [

View File

@ -529,7 +529,7 @@ TEST(HybridNonlinearFactorGraph, Full_Elimination) {
/**************************************************************************** /****************************************************************************
* Test printing * Test printing
*/ */
TEST_DISABLED(HybridNonlinearFactorGraph, Printing) { TEST(HybridNonlinearFactorGraph, Printing) {
Switching self(3); Switching self(3);
auto linearizedFactorGraph = self.linearizedFactorGraph; auto linearizedFactorGraph = self.linearizedFactorGraph;
@ -567,7 +567,7 @@ Hybrid [x0 x1; m0]{
] ]
b = [ -1 ] b = [ -1 ]
No noise model No noise model
scalar: 0 scalar: 0.918939
1 Leaf : 1 Leaf :
A[x0] = [ A[x0] = [
@ -578,7 +578,7 @@ scalar: 0
] ]
b = [ -0 ] b = [ -0 ]
No noise model No noise model
scalar: 0 scalar: 0.918939
} }
@ -595,7 +595,7 @@ Hybrid [x1 x2; m1]{
] ]
b = [ -1 ] b = [ -1 ]
No noise model No noise model
scalar: 0 scalar: 0.918939
1 Leaf : 1 Leaf :
A[x1] = [ A[x1] = [
@ -606,7 +606,7 @@ scalar: 0
] ]
b = [ -0 ] b = [ -0 ]
No noise model No noise model
scalar: 0 scalar: 0.918939
} }