More testing

This commit is contained in:
Simon Brand
2017-11-27 14:36:59 +00:00
parent c67aaff948
commit 6c4178a947
2 changed files with 1 additions and 15 deletions

View File

@ -18,6 +18,7 @@ set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/tests/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/constexpr.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/constructors.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/assignment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/bases.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/nullopt.cpp)
add_executable(tests ${TEST_SOURCES})

View File

@ -47,21 +47,6 @@ TEST_CASE("Deletion", "[bases.deletion]") {
REQUIRE(std::is_move_assignable<tl::optional<int>>::value);
REQUIRE(std::is_destructible<tl::optional<int>>::value);
//TODO fix
/* {
struct T {
T()=default;
};
REQUIRE(std::is_default_constructible<tl::optional<T>>::value);
}
{
struct T {
T(int);
};
REQUIRE(!std::is_default_constructible<tl::optional<T>>::value);
}
*/
{
struct T {
T(const T&) = default;