From 1631222a2992abffcd05b21767475acb62adf752 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Thu, 8 Aug 2013 08:44:00 +0000 Subject: [PATCH] fix streaming tests to agree with new print in matlab column vector style --- gtsam/geometry/tests/testPoint3.cpp | 2 +- gtsam/geometry/tests/testPose3.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/geometry/tests/testPoint3.cpp b/gtsam/geometry/tests/testPoint3.cpp index b50e1b9d9..7be69f03b 100644 --- a/gtsam/geometry/tests/testPoint3.cpp +++ b/gtsam/geometry/tests/testPoint3.cpp @@ -77,7 +77,7 @@ TEST( Point3, stream) Point3 p(1,2, -3); std::ostringstream os; os << p; - EXPECT(os.str() == "(1, 2, -3)"); + EXPECT(os.str() == "[1, 2, -3]';"); } /* ************************************************************************* */ diff --git a/gtsam/geometry/tests/testPose3.cpp b/gtsam/geometry/tests/testPose3.cpp index 5f4a68d3b..ce193a0e5 100644 --- a/gtsam/geometry/tests/testPose3.cpp +++ b/gtsam/geometry/tests/testPose3.cpp @@ -747,7 +747,7 @@ TEST( Pose3, stream) Pose3 T; std::ostringstream os; os << T; - EXPECT(os.str() == "\n|1, 0, 0|\n|0, 1, 0|\n|0, 0, 1|\n\n(0, 0, 0)\n"); + EXPECT(os.str() == "\n|1, 0, 0|\n|0, 1, 0|\n|0, 0, 1|\n\n[0, 0, 0]';\n"); } /* ************************************************************************* */