From b32e733280db73cf9c0b7e6a4424d680f8064cbd Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 16 Jun 2015 12:46:49 +0200 Subject: [PATCH] [T/GL] Do not test exactly the bounds. OctTree modifies the right limit of the interface a little bit. --- Tests/GeoLib/TestOctTree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/GeoLib/TestOctTree.cpp b/Tests/GeoLib/TestOctTree.cpp index fcb34c406d6..56b698eb47b 100644 --- a/Tests/GeoLib/TestOctTree.cpp +++ b/Tests/GeoLib/TestOctTree.cpp @@ -97,9 +97,9 @@ TEST_F(GeoLibOctTree, TestWithEquidistantPoints3d) EXPECT_EQ((*ps_ptr.front())[1], ll[1]); EXPECT_EQ((*ps_ptr.front())[2], ll[2]); - EXPECT_EQ((*ps_ptr.back())[0], ur[0]); - EXPECT_EQ((*ps_ptr.back())[1], ur[1]); - EXPECT_EQ((*ps_ptr.back())[2], ur[2]); + EXPECT_NEAR((*ps_ptr.back())[0], ur[0], (ur[0]-ll[0])*1e-6); + EXPECT_NEAR((*ps_ptr.back())[1], ur[1], (ur[1]-ll[1])*1e-6); + EXPECT_NEAR((*ps_ptr.back())[2], ur[2], (ur[2]-ll[2])*1e-6); checkOctTreeChildsNullptr<2>(*oct_tree); -- GitLab