Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
564c42cb
Commit
564c42cb
authored
6 years ago
by
Antti Soininen
Browse files
Options
Downloads
Patches
Plain Diff
Code beautification. Re #22723
parent
3d67409a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Algorithms/test/ReflectometrySumInQTest.h
+5
-4
5 additions, 4 deletions
Framework/Algorithms/test/ReflectometrySumInQTest.h
with
5 additions
and
4 deletions
Framework/Algorithms/test/ReflectometrySumInQTest.h
+
5
−
4
View file @
564c42cb
...
@@ -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
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment