Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
570ffc0b
Commit
570ffc0b
authored
4 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add tests for DiscreteFunctionType
parent
407b64ac
No related branches found
No related tags found
1 merge request
!89
Add missing compatibility check when affecting lists to R^d or R^dxd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/scheme/DiscreteFunctionType.hpp
+2
-0
2 additions, 0 deletions
src/scheme/DiscreteFunctionType.hpp
tests/CMakeLists.txt
+1
-0
1 addition, 0 deletions
tests/CMakeLists.txt
tests/test_DiscreteFunctionType.cpp
+15
-0
15 additions, 0 deletions
tests/test_DiscreteFunctionType.cpp
with
18 additions
and
0 deletions
src/scheme/DiscreteFunctionType.hpp
+
2
−
0
View file @
570ffc0b
...
...
@@ -21,7 +21,9 @@ name(DiscreteFunctionType type)
case
DiscreteFunctionType
::
P0Vector
:
return
"P0Vector"
;
}
// LCOV_EXCL_START
return
{};
// LCOV_EXCL_STOP
}
#endif // DISCRETE_FUNCTION_TYPE_HPP
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
1
−
0
View file @
570ffc0b
...
...
@@ -58,6 +58,7 @@ add_executable (unit_tests
test_CRSMatrix.cpp
test_DataVariant.cpp
test_Demangle.cpp
test_DiscreteFunctionType.cpp
test_DoWhileProcessor.cpp
test_EmbeddedData.cpp
test_EscapedString.cpp
...
...
This diff is collapsed.
Click to expand it.
tests/test_DiscreteFunctionType.cpp
0 → 100644
+
15
−
0
View file @
570ffc0b
#include
<catch2/catch_test_macros.hpp>
#include
<catch2/matchers/catch_matchers_all.hpp>
#include
<scheme/DiscreteFunctionType.hpp>
// clazy:excludeall=non-pod-global-static
TEST_CASE
(
"DiscreteFunctionType"
,
"[scheme]"
)
{
SECTION
(
"name"
)
{
REQUIRE
(
name
(
DiscreteFunctionType
::
P0
)
==
"P0"
);
REQUIRE
(
name
(
DiscreteFunctionType
::
P0Vector
)
==
"P0Vector"
);
}
}
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