Skip to content

Commit

Permalink
In unit test realign detector IDs re #5797
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Feb 26, 2013
1 parent ca19a15 commit 3765149
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Code/Mantid/Framework/Algorithms/test/ApplyCalibrationTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,12 @@ class ApplyCalibrationTest : public CxxTest::TestSuite
for(int i=0; i < 3; ++i)
{
TableRow row = posTableWs->appendRow();
row << i << V3D(1.0,0.01*i,1.0);
row << i+1 << V3D(1.0,0.01*i,1.0);
}
TS_ASSERT_THROWS_NOTHING(appCalib.setProperty<Workspace2D_sptr>("Workspace", ws ));
TS_ASSERT_THROWS_NOTHING(appCalib.setProperty<ITableWorkspace_sptr>("PositionTable", posTableWs ));
try
{
TS_ASSERT_EQUALS(appCalib.execute(),true);
}
catch(std::runtime_error & e)
{
TS_FAIL(e.what());
}
TS_ASSERT_THROWS_NOTHING(appCalib.execute());

TS_ASSERT( appCalib.isExecuted() );

}
Expand Down

0 comments on commit 3765149

Please sign in to comment.