From abb0bf34d2417945b721a63f490f49f8d0e785d2 Mon Sep 17 00:00:00 2001 From: xianglunkai <1322099375@qq.com> Date: Mon, 28 Mar 2022 22:44:21 +0800 Subject: [PATCH] test_3d_lines:fix test result for test_3d_lines --- libraries/AP_Math/tests/test_3d_lines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/tests/test_3d_lines.cpp b/libraries/AP_Math/tests/test_3d_lines.cpp index da8c1cfbcb..0d41064f98 100644 --- a/libraries/AP_Math/tests/test_3d_lines.cpp +++ b/libraries/AP_Math/tests/test_3d_lines.cpp @@ -26,7 +26,7 @@ TEST(Lines3dTests, ClosestDistBetweenLinePoint) // check protection agains null length const Vector3f intersection_null = Vector3f::point_on_line_closest_to_other_point(Vector3f{1.0f, 1.0f, 1.0f}, Vector3f{1.0f, 1.0f, 1.0f}, Vector3f{0.0f, 5.0f, 5.0f}); - EXPECT_VECTOR3F_EQ((Vector3f{0.0f, 0.0f, 0.0f}), intersection_null); + EXPECT_VECTOR3F_EQ((Vector3f{1.0f, 1.0f, 1.0f}), intersection_null); } TEST(Lines3dTests, SegmentToSegmentCloestPoint)