From 843ba13b4ec40069180fc6613cf7d735da2ee038 Mon Sep 17 00:00:00 2001 From: Sameer Sheorey <41028320+ssheorey@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:00:54 -0800 Subject: [PATCH] style fix: AxisAlignedBoundingBox.cpp --- cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp b/cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp index c9070297629..54405b414ff 100644 --- a/cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp +++ b/cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp @@ -32,6 +32,7 @@ INSTANTIATE_TEST_SUITE_P( AxisAlignedBoundingBoxPermuteDevicePairs::TestCases())); TEST_P(AxisAlignedBoundingBoxPermuteDevices, ConstructorNoArg) { + using ::testing::AnyOf; t::geometry::AxisAlignedBoundingBox aabb; // Inherited from Geometry3D. @@ -51,7 +52,11 @@ TEST_P(AxisAlignedBoundingBoxPermuteDevices, ConstructorNoArg) { EXPECT_EQ(aabb.GetDevice(), core::Device("CPU:0")); // Print Information. - EXPECT_EQ(aabb.ToString(), "AxisAlignedBoundingBox[[0 0 0] - [0 0 0], Float32, CPU:0]"); + EXPECT_THAT( + aabb.ToString(), // Compiler dependent output + AnyOf("AxisAlignedBoundingBox[[0 0 0] - [0 0 0], Float32, CPU:0]", + "AxisAlignedBoundingBox[[0.0 0.0 0.0] - [0.0 0.0 0.0], " + "Float32, CPU:0]")); } TEST_P(AxisAlignedBoundingBoxPermuteDevices, Constructor) {