Skip to content

Commit

Permalink
In unit test access fit parameter correctly re #8398
Browse files Browse the repository at this point in the history
Also name the OutputTableWorkspace.
Unit test passes, so a git checkbuild may be done.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Jan 6, 2014
1 parent dd3dfb6 commit 8968360
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -294,6 +294,7 @@ class LoadFullprofResolutionTest : public CxxTest::TestSuite
alg.setProperty("Filename", filename);
alg.setPropertyValue("Banks", "1");
alg.setProperty("Workspace", wsName);
alg.setProperty("OutputTableWorkspace", "TestWorkspaceTable");

// Execute
TS_ASSERT_THROWS_NOTHING(alg.execute());
Expand All @@ -310,14 +311,14 @@ class LoadFullprofResolutionTest : public CxxTest::TestSuite
TS_ASSERT(alpha0Param);
if(alpha0Param) {
const Mantid::Geometry::FitParameter& fitParam1 = alpha0Param->value<Mantid::Geometry::FitParameter>();
TS_ASSERT_DELTA( fitParam1.getValue(), 0.000008, 0.0000001);
TS_ASSERT_DELTA( boost::lexical_cast<double>(fitParam1.getFormula()), 0.000008, 0.0000001);
}

Mantid::Geometry::Parameter_sptr beta0Param = paramMap.get(&(*instr), "Beta0", "fitting");
TS_ASSERT(beta0Param);
if(beta0Param) {
const Mantid::Geometry::FitParameter& fitParam1 = beta0Param->value<Mantid::Geometry::FitParameter>();
TS_ASSERT_DELTA( fitParam1.getValue(), 6.251096, 0.0000001);
TS_ASSERT_DELTA( boost::lexical_cast<double>(fitParam1.getFormula()), 6.251096, 0.0000001);
}


Expand Down

0 comments on commit 8968360

Please sign in to comment.