Skip to content
Snippets Groups Projects
Commit 570ffc0b authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add tests for DiscreteFunctionType

parent 407b64ac
No related branches found
No related tags found
1 merge request!89Add missing compatibility check when affecting lists to R^d or R^dxd
......@@ -21,7 +21,9 @@ name(DiscreteFunctionType type)
case DiscreteFunctionType::P0Vector:
return "P0Vector";
}
// LCOV_EXCL_START
return {};
// LCOV_EXCL_STOP
}
#endif // DISCRETE_FUNCTION_TYPE_HPP
......@@ -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
......
#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");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment