IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Air Shower Physics
corsika
Commits
d52048fe
Commit
d52048fe
authored
5 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
implemented test
parent
98942571
No related branches found
No related tags found
1 merge request
!137
Resolve "Add unit-tests for SwitchProcess in ProcessSequence"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/ProcessSequence/CMakeLists.txt
+1
-0
1 addition, 0 deletions
Framework/ProcessSequence/CMakeLists.txt
Framework/ProcessSequence/testProcessSequence.cc
+8
-0
8 additions, 0 deletions
Framework/ProcessSequence/testProcessSequence.cc
with
9 additions
and
0 deletions
Framework/ProcessSequence/CMakeLists.txt
+
1
−
0
View file @
d52048fe
...
@@ -47,6 +47,7 @@ target_link_libraries (
...
@@ -47,6 +47,7 @@ target_link_libraries (
CORSIKA_ADD_TEST
(
testProcessSequence
)
CORSIKA_ADD_TEST
(
testProcessSequence
)
target_link_libraries
(
target_link_libraries
(
testProcessSequence
testProcessSequence
ProcessSwitch
CORSIKAsetup
CORSIKAsetup
CORSIKAgeometry
CORSIKAgeometry
CORSIKAprocesssequence
CORSIKAprocesssequence
...
...
This diff is collapsed.
Click to expand it.
Framework/ProcessSequence/testProcessSequence.cc
+
8
−
0
View file @
d52048fe
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include
<iostream>
#include
<iostream>
#include
<corsika/process/ProcessSequence.h>
#include
<corsika/process/ProcessSequence.h>
#include
<corsika/process/switch_process/SwitchProcess.h>
using
namespace
corsika
;
using
namespace
corsika
;
using
namespace
corsika
::
units
::
si
;
using
namespace
corsika
::
units
::
si
;
...
@@ -291,3 +292,10 @@ TEST_CASE("Process Sequence", "[Process Sequence]") {
...
@@ -291,3 +292,10 @@ TEST_CASE("Process Sequence", "[Process Sequence]") {
CHECK
(
s2
.
GetCount
()
==
10
);
CHECK
(
s2
.
GetCount
()
==
10
);
}
}
}
}
TEST_CASE
(
"SwitchProcess"
)
{
Process1
p1
(
0
);
Process2
p2
(
0
);
switch_process
::
SwitchProcess
s
(
p1
,
p2
,
10
_GeV
);
REQUIRE
(
is_switch_process_v
<
decltype
(
s
)
>
);
}
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