Skip to content
Snippets Groups Projects
Commit d3f24cb1 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Added TODO part in unit test

parent 9127c5e0
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,12 @@ TEST_F(InstrumentTest, BeamManipulation)
EXPECT_FALSE( m_instrument.getDetectorDimension()==2 );
m_instrument.matchDetectorParameters(m_data);
EXPECT_TRUE( m_instrument.getDetectorDimension()==2 );
//TODO: add axes check
const IAxis &axis0 = m_instrument.getDetectorAxis(0);
const IAxis &axis1 = m_instrument.getDetectorAxis(1);
EXPECT_EQ( axis0.getName(), BA::PHI_AXIS_NAME );
EXPECT_EQ( axis0.getSize(), 10);
EXPECT_STREQ( axis1.getName().c_str(), "theta_f" );
EXPECT_EQ( axis1.getSize(), 20);
m_instrument.setBeamIntensity(10);
EXPECT_EQ( double(10), m_instrument.getIntensity());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment