From 37e6e4c2eb8ec83b944e4db0b0501d1b2aa0925b Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Mon, 10 May 2010 05:39:00 +0000 Subject: [PATCH] fix octree unit test git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2218 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gfx/tests/test_map_octree.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gfx/tests/test_map_octree.cc b/modules/gfx/tests/test_map_octree.cc index 819b38618..0ee43a713 100644 --- a/modules/gfx/tests/test_map_octree.cc +++ b/modules/gfx/tests/test_map_octree.cc @@ -174,6 +174,7 @@ BOOST_AUTO_TEST_CASE(octree_power_of_two) img.SetReal(img::Point(0, 0, 1), 0.5f); Pow2Vis v; MapOctree octree(img); + octree.Initialize(); octree.VisitDF(v); BOOST_CHECK_EQUAL(v.leaf_count, 8); BOOST_CHECK_EQUAL(v.node_count, 1); @@ -192,6 +193,7 @@ BOOST_AUTO_TEST_CASE(octree_non_power_of_two) img.SetReal(img::Point(0, 0, 1), 0.5f); NonPow2Vis v; MapOctree octree(img); + octree.Initialize(); octree.VisitDF(v); } -- GitLab