Skip to content
Snippets Groups Projects
Commit 37e6e4c2 authored by marco's avatar marco
Browse files

fix octree unit test

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2218 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 01dcc2dd
No related branches found
No related tags found
No related merge requests found
...@@ -174,6 +174,7 @@ BOOST_AUTO_TEST_CASE(octree_power_of_two) ...@@ -174,6 +174,7 @@ BOOST_AUTO_TEST_CASE(octree_power_of_two)
img.SetReal(img::Point(0, 0, 1), 0.5f); img.SetReal(img::Point(0, 0, 1), 0.5f);
Pow2Vis v; Pow2Vis v;
MapOctree octree(img); MapOctree octree(img);
octree.Initialize();
octree.VisitDF(v); octree.VisitDF(v);
BOOST_CHECK_EQUAL(v.leaf_count, 8); BOOST_CHECK_EQUAL(v.leaf_count, 8);
BOOST_CHECK_EQUAL(v.node_count, 1); BOOST_CHECK_EQUAL(v.node_count, 1);
...@@ -192,6 +193,7 @@ BOOST_AUTO_TEST_CASE(octree_non_power_of_two) ...@@ -192,6 +193,7 @@ BOOST_AUTO_TEST_CASE(octree_non_power_of_two)
img.SetReal(img::Point(0, 0, 1), 0.5f); img.SetReal(img::Point(0, 0, 1), 0.5f);
NonPow2Vis v; NonPow2Vis v;
MapOctree octree(img); MapOctree octree(img);
octree.Initialize();
octree.VisitDF(v); octree.VisitDF(v);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment