Skip to content

Commit 4098402

Browse files
committed
maybe?
1 parent a6a230e commit 4098402

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Framework/Algorithms/test/CreateUserDefinedBackgroundTest.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using Mantid::API::MatrixWorkspace_sptr;
2424

2525
namespace {
2626
// flag for absolute or relative comparison
27-
enum Comparison : bool { RELATIVE = true, ABSOLUTE = false };
27+
enum Comparison : bool { CMP_RELATIVE = true, CMP_ABSOLUTE = false };
2828

2929
// Gaussian
3030
double gauss(double x, double height, double centre, double fwhm) {
@@ -111,7 +111,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
111111

112112
// The expected result
113113
const auto expected = createExpectedResults(true);
114-
TS_ASSERT(workspacesEqual(expected, outputWS, 0.105, Comparison::RELATIVE));
114+
TS_ASSERT(workspacesEqual(expected, outputWS, 0.105, Comparison::CMP_RELATIVE));
115115
}
116116

117117
void test_exec_HistoWS_NormalisePlotsOn() {
@@ -137,7 +137,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
137137

138138
// The expected result
139139
const auto expected = createExpectedResults(true, true);
140-
TS_ASSERT(workspacesEqual(expected, outputWS, 5e-2, Comparison::ABSOLUTE));
140+
TS_ASSERT(workspacesEqual(expected, outputWS, 5e-2, Comparison::CMP_ABSOLUTE));
141141
}
142142

143143
void test_exec_PointsWS_extend() {
@@ -247,7 +247,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
247247
const auto expected = createExpectedResults(true, false);
248248
Mantid::API::WorkspaceHelpers::makeDistribution(expected);
249249

250-
TS_ASSERT(workspacesEqual(expected, outputWS, 0.105, Comparison::RELATIVE));
250+
TS_ASSERT(workspacesEqual(expected, outputWS, 0.105, Comparison::CMP_RELATIVE));
251251
}
252252

253253
private:
@@ -305,7 +305,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
305305

306306
/// Compare workspaces
307307
bool workspacesEqual(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs, double tolerance,
308-
bool const relativeError = Comparison::ABSOLUTE) {
308+
bool const relativeError = Comparison::CMP_ABSOLUTE) {
309309
auto alg = Mantid::API::AlgorithmFactory::Instance().create("CompareWorkspaces", 1);
310310
alg->setChild(true);
311311
alg->initialize();
@@ -339,7 +339,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
339339

340340
// The expected result
341341
const auto expected = createExpectedResults(false);
342-
TS_ASSERT(workspacesEqual(expected, outputWS, 1e-4, Comparison::ABSOLUTE));
342+
TS_ASSERT(workspacesEqual(expected, outputWS, 1e-4, Comparison::CMP_ABSOLUTE));
343343
}
344344

345345
/// Cached string for option

Testing/SystemTests/tests/framework/ILLDirectGeometryReductionTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def runTest(self):
164164

165165
def validate(self):
166166
self.tolerance = 1e-2
167-
self.tolerance_is_rel_err = True
167+
self.tolerance_is_rel_err = False
168168
self.disableChecking = ["Instrument", "Sample"]
169169
return ["cropped", "ILL_IN6_SofQW.nxs"]
170170

0 commit comments

Comments
 (0)