Skip to content

Commit

Permalink
Fix broken Scale*Tests
Browse files Browse the repository at this point in the history
Refs #8983
  • Loading branch information
martyngigg committed Mar 3, 2014
1 parent 41d43a0 commit f4307dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Algorithms/test/ScaleTest.h
Expand Up @@ -95,7 +95,7 @@ class ScaleTest : public CxxTest::TestSuite
TS_ASSERT_DELTA(outputWS->readX(i)[j], inputWS->readX(i)[j], 1e-12);
double resultY = (multiply) ? factor*inputWS->readY(i)[j] : factor + inputWS->readY(i)[j];
TS_ASSERT_DELTA(outputWS->readY(i)[j], resultY, 1e-12);
double resultE = (multiply) ? factor*inputWS->readE(i)[j] : factor + inputWS->readE(i)[j];
double resultE = (multiply) ? factor*inputWS->readE(i)[j] : inputWS->readE(i)[j];
TS_ASSERT_DELTA(outputWS->readE(i)[j], resultE, 1e-12);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Algorithms/test/ScaleXTest.h
Expand Up @@ -206,7 +206,7 @@ class ScaleXTest : public CxxTest::TestSuite
double algFactor(2.0);
bool combine(true);
auto result = runScaleX(inputWS, "Add", algFactor, parname, combine);
testScaleFactorApplied(inputWS, result, algFactor*instFactor, false); //multiply=true
testScaleFactorApplied(inputWS, result, algFactor+instFactor, false); //multiply=true
}


Expand Down

0 comments on commit f4307dd

Please sign in to comment.