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

Add tests for DualMeshType

parent 47096170
Branches
Tags
1 merge request!125Rename DualConnectivityBuilder and MedianDualMeshBuilder's files
......@@ -74,6 +74,7 @@ add_executable (unit_tests
test_DoWhileProcessor.cpp
test_DualConnectivityManager.cpp
test_DualMeshManager.cpp
test_DualMeshType.cpp
test_EdgeIntegrator.cpp
test_EigenvalueSolver.cpp
test_EmbeddedData.cpp
......
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_all.hpp>
#include <mesh/DualMeshType.hpp>
// clazy:excludeall=non-pod-global-static
TEST_CASE("DualMeshType", "[mesh]")
{
REQUIRE(name(DualMeshType::Diamond) == "diamond");
REQUIRE(name(DualMeshType::Median) == "median");
REQUIRE_THROWS_WITH(name(DualMeshType{-1}), "unexpected error: unexpected dual mesh type");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment