Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
ada92701
Commit
ada92701
authored
May 21, 2020
by
Danny Hindson
Browse files
Fix LoadSampleShapeTest to not assume matrix workspace
parent
dd58b616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/DataHandling/test/LoadSampleShapeTest.h
View file @
ada92701
...
...
@@ -235,8 +235,11 @@ private:
}
const
MeshObject
*
getMeshObject
(
LoadSampleShape
&
alg
)
{
MatrixWorkspace_sptr
ws
=
alg
.
getProperty
(
"OutputWorkspace"
);
const
auto
&
s
(
ws
->
sample
());
Workspace_sptr
ws
=
alg
.
getProperty
(
"OutputWorkspace"
);
auto
ei
=
std
::
dynamic_pointer_cast
<
ExperimentInfo
>
(
ws
);
if
(
!
ei
)
throw
std
::
invalid_argument
(
"Wrong type of input workspace"
);
const
auto
&
s
(
ei
->
sample
());
auto
&
obj
=
s
.
getShape
();
auto
mObj
=
dynamic_cast
<
const
MeshObject
*>
(
&
obj
);
TSM_ASSERT_DIFFERS
(
"Shape is not a mesh object"
,
mObj
,
nullptr
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment