Skip to content
Snippets Groups Projects
Commit 564c42cb authored by Antti Soininen's avatar Antti Soininen
Browse files

Code beautification. Re #22723

parent 3d67409a
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ public: ...@@ -178,7 +178,7 @@ public:
void test_isTwoThetaSignAgnostic() { void test_isTwoThetaSignAgnostic() {
using namespace Mantid; using namespace Mantid;
auto inputWS = testWorkspace(0, 51); // One spectrum is monitor auto inputWS = testWorkspace(0, 51); // One spectrum is monitor
inputWS = detectorsOnly(inputWS); inputWS = detectorsOnly(inputWS);
inputWS = convertToWavelength(inputWS); inputWS = convertToWavelength(inputWS);
const auto &spectrumInfo = inputWS->spectrumInfo(); const auto &spectrumInfo = inputWS->spectrumInfo();
...@@ -199,8 +199,7 @@ public: ...@@ -199,8 +199,7 @@ public:
alg.setPropertyValue("InputWorkspaceIndexSet", indexSetValue.str())) alg.setPropertyValue("InputWorkspaceIndexSet", indexSetValue.str()))
TS_ASSERT_THROWS_NOTHING( TS_ASSERT_THROWS_NOTHING(
alg.setPropertyValue("OutputWorkspace", "_unused_for_child")) alg.setPropertyValue("OutputWorkspace", "_unused_for_child"))
TS_ASSERT_THROWS_NOTHING( TS_ASSERT_THROWS_NOTHING(alg.setProperty("BeamCentre", spectrum1))
alg.setProperty("BeamCentre", spectrum1))
TS_ASSERT_THROWS_NOTHING(alg.setProperty("FlatSample", isFlatSample)) TS_ASSERT_THROWS_NOTHING(alg.setProperty("FlatSample", isFlatSample))
TS_ASSERT_THROWS_NOTHING(alg.setProperty("IncludePartialBins", false)) TS_ASSERT_THROWS_NOTHING(alg.setProperty("IncludePartialBins", false))
TS_ASSERT_THROWS_NOTHING(alg.execute()) TS_ASSERT_THROWS_NOTHING(alg.execute())
...@@ -274,7 +273,9 @@ public: ...@@ -274,7 +273,9 @@ public:
} }
private: private:
static Mantid::API::MatrixWorkspace_sptr testWorkspace(const double centreTwoThetaDegrees = 0.87, const int nSpectra = 4) { static Mantid::API::MatrixWorkspace_sptr
testWorkspace(const double centreTwoThetaDegrees = 0.87,
const int nSpectra = 4) {
using namespace Mantid; using namespace Mantid;
using namespace WorkspaceCreationHelper; using namespace WorkspaceCreationHelper;
constexpr double startX{0.1}; constexpr double startX{0.1};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment