@@ -24,7 +24,7 @@ using Mantid::API::MatrixWorkspace_sptr;
24
24
25
25
namespace {
26
26
// flag for absolute or relative comparison
27
- enum Comparison : bool { RELATIVE = true , ABSOLUTE = false };
27
+ enum Comparison : bool { CMP_RELATIVE = true , CMP_ABSOLUTE = false };
28
28
29
29
// Gaussian
30
30
double gauss (double x, double height, double centre, double fwhm) {
@@ -111,7 +111,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
111
111
112
112
// The expected result
113
113
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 ));
115
115
}
116
116
117
117
void test_exec_HistoWS_NormalisePlotsOn () {
@@ -137,7 +137,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
137
137
138
138
// The expected result
139
139
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 ));
141
141
}
142
142
143
143
void test_exec_PointsWS_extend () {
@@ -247,7 +247,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
247
247
const auto expected = createExpectedResults (true , false );
248
248
Mantid::API::WorkspaceHelpers::makeDistribution (expected);
249
249
250
- TS_ASSERT (workspacesEqual (expected, outputWS, 0.105 , Comparison::RELATIVE ));
250
+ TS_ASSERT (workspacesEqual (expected, outputWS, 0.105 , Comparison::CMP_RELATIVE ));
251
251
}
252
252
253
253
private:
@@ -305,7 +305,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
305
305
306
306
// / Compare workspaces
307
307
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 ) {
309
309
auto alg = Mantid::API::AlgorithmFactory::Instance ().create (" CompareWorkspaces" , 1 );
310
310
alg->setChild (true );
311
311
alg->initialize ();
@@ -339,7 +339,7 @@ class CreateUserDefinedBackgroundTest : public CxxTest::TestSuite {
339
339
340
340
// The expected result
341
341
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 ));
343
343
}
344
344
345
345
// / Cached string for option
0 commit comments