Commit 66035c90 authored by GILLES Sebastien's avatar GILLES Sebastien

#1260 Add CMakeLists.txt for new test, and add an element in one tuple to...

#1260 Add CMakeLists.txt for new test, and add an element in one tuple to increase a bit a test scope (checks duplication of a type in a tuple is allright, which would not be the case with std::get<>).
parent b1ee5f5a
include(${CMAKE_CURRENT_LIST_DIR}/InputParameterList/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/TypeName/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/LuaOptionFile/CMakeLists.txt)
\ No newline at end of file
include(${CMAKE_CURRENT_LIST_DIR}/LuaOptionFile/CMakeLists.txt)
include(${CMAKE_CURRENT_LIST_DIR}/TupleHasType/CMakeLists.txt)
\ No newline at end of file
add_executable(MoReFEMTestTuple
${CMAKE_CURRENT_LIST_DIR}/main.cpp
)
# No target link: tested features are header-only.
morefem_install(MoReFEMTestTuple)
......@@ -19,7 +19,7 @@ using namespace MoReFEM;
TEST_CASE("Simple case: std::is_same" )
{
using tuple = std::tuple<int, float, double>;
using tuple = std::tuple<int, float, double, float>;
REQUIRE(Utilities::Tuple::HasType<int, std::is_same, tuple>());
REQUIRE(!Utilities::Tuple::HasType<char, std::is_same, tuple>());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment