Commit d2bf6846 authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE #347] adapted tests to changed behavior of getVoxelNum

parent 00e10c8c
......@@ -173,8 +173,9 @@ public:
m_algo->m_values[0] = m_algo->m_values[4] = m_algo->m_values[7] = 0.0;
wmath::WLine k;
// These two points are supposed to be voxel centers
k.push_back( wmath::WPosition( 0.0, 0.0, 0.0 ) );
k.push_back( wmath::WPosition( 1.0, 2.0, 0.0 ) );
k.push_back( wmath::WPosition( 1.0, 2.0 - wlimits::DBL_EPS, 0.0 ) );
m_algo->raster( k );
expected[3] = 1.0;
expected[4] = 0.0;
......
......@@ -174,8 +174,9 @@ public:
m_algo->m_values[7] = 0.0;
wmath::WLine k;
// These two are supposed to be the voxel centers.
k.push_back( wmath::WPosition( 0.0, 0.0, 0.0 ) );
k.push_back( wmath::WPosition( 1.0, 2.0, 0.0 ) );
k.push_back( wmath::WPosition( 1.0, 2.0 - wlimits::DBL_EPS , 0.0 ) );
m_algo->raster( k );
TS_ASSERT_EQUALS( m_algo->m_values, expected );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment