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
97ed8e75
Commit
97ed8e75
authored
14 years ago
by
Janik Zikovsky
Browse files
Options
Downloads
Patches
Plain Diff
Refs #1525: Extra test.
parent
a40af800
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
Code/Mantid/Framework/Nexus/test/SaveNexusProcessedTest.h
+18
-3
18 additions, 3 deletions
Code/Mantid/Framework/Nexus/test/SaveNexusProcessedTest.h
with
18 additions
and
3 deletions
Code/Mantid/Framework/Nexus/test/SaveNexusProcessedTest.h
+
18
−
3
View file @
97ed8e75
...
@@ -285,7 +285,7 @@ void testExecOnMuonXml()
...
@@ -285,7 +285,7 @@ void testExecOnMuonXml()
void
do_testExec_EventWorkspaces
(
EventType
type
)
void
do_testExec_EventWorkspaces
(
EventType
type
,
bool
makeDifferentTypes
=
false
)
{
{
std
::
vector
<
std
::
vector
<
int
>
>
groups
(
5
);
std
::
vector
<
std
::
vector
<
int
>
>
groups
(
5
);
groups
[
0
].
push_back
(
10
);
groups
[
0
].
push_back
(
10
);
...
@@ -300,8 +300,18 @@ void do_testExec_EventWorkspaces(EventType type)
...
@@ -300,8 +300,18 @@ void do_testExec_EventWorkspaces(EventType type)
EventWorkspace_sptr
WS
=
WorkspaceCreationHelper
::
CreateGroupedEventWorkspace
(
groups
,
100
,
1.0
);
EventWorkspace_sptr
WS
=
WorkspaceCreationHelper
::
CreateGroupedEventWorkspace
(
groups
,
100
,
1.0
);
WS
->
getEventList
(
3
).
clear
();
WS
->
getEventList
(
3
).
clear
();
// Switch the event type
// Switch the event type
for
(
size_t
wi
=
0
;
wi
<
WS
->
getNumberHistograms
();
wi
++
)
if
(
makeDifferentTypes
)
WS
->
getEventList
(
wi
).
switchTo
(
type
);
{
WS
->
getEventList
(
0
).
switchTo
(
TOF
);
WS
->
getEventList
(
1
).
switchTo
(
WEIGHTED
);
WS
->
getEventList
(
2
).
switchTo
(
WEIGHTED_NOTIME
);
WS
->
getEventList
(
4
).
switchTo
(
WEIGHTED
);
}
else
{
for
(
size_t
wi
=
0
;
wi
<
WS
->
getNumberHistograms
();
wi
++
)
WS
->
getEventList
(
wi
).
switchTo
(
type
);
}
SaveNexusProcessed
alg
;
SaveNexusProcessed
alg
;
alg
.
initialize
();
alg
.
initialize
();
...
@@ -348,6 +358,11 @@ void testExec_EventWorkspace_WeightedEventNoTime()
...
@@ -348,6 +358,11 @@ void testExec_EventWorkspace_WeightedEventNoTime()
do_testExec_EventWorkspaces
(
WEIGHTED_NOTIME
);
do_testExec_EventWorkspaces
(
WEIGHTED_NOTIME
);
}
}
void
testExec_EventWorkspace_DifferentTypes
()
{
do_testExec_EventWorkspaces
(
WEIGHTED_NOTIME
,
true
);
}
void
testExec_LoadedEventWorkspace
()
void
testExec_LoadedEventWorkspace
()
{
{
...
...
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