forked from TartanLlama/optional
More testing
This commit is contained in:
@@ -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/constexpr.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tests/constructors.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/tests/constructors.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tests/assignment.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/tests/assignment.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/tests/bases.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tests/nullopt.cpp)
|
${CMAKE_CURRENT_SOURCE_DIR}/tests/nullopt.cpp)
|
||||||
|
|
||||||
add_executable(tests ${TEST_SOURCES})
|
add_executable(tests ${TEST_SOURCES})
|
||||||
|
@@ -47,21 +47,6 @@ TEST_CASE("Deletion", "[bases.deletion]") {
|
|||||||
REQUIRE(std::is_move_assignable<tl::optional<int>>::value);
|
REQUIRE(std::is_move_assignable<tl::optional<int>>::value);
|
||||||
REQUIRE(std::is_destructible<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 {
|
struct T {
|
||||||
T(const T&) = default;
|
T(const T&) = default;
|
||||||
|
Reference in New Issue
Block a user