Skip to content

Commit

Permalink
style fix: AxisAlignedBoundingBox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Nov 14, 2023
1 parent 2bd40c0 commit 843ba13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cpp/tests/t/geometry/AxisAlignedBoundingBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ INSTANTIATE_TEST_SUITE_P(
AxisAlignedBoundingBoxPermuteDevicePairs::TestCases()));

TEST_P(AxisAlignedBoundingBoxPermuteDevices, ConstructorNoArg) {
using ::testing::AnyOf;
t::geometry::AxisAlignedBoundingBox aabb;

// Inherited from Geometry3D.
Expand All @@ -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) {
Expand Down

0 comments on commit 843ba13

Please sign in to comment.