mirror of
https://github.com/TartanLlama/optional.git
synced 2025-08-04 04:14:25 +02:00
Do CMake properly
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
TEST_CASE("Assignment value", "[assignment.value]") {
|
||||
tl::optional<int> o1 = 42;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
// Old versions of GCC don't have the correct trait names. Could fix them up if needs be.
|
||||
#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
#define TOKENPASTE(x, y) x##y
|
||||
#define TOKENPASTE2(x, y) TOKENPASTE(x, y)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
#include <vector>
|
||||
|
||||
struct foo {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
#include <utility>
|
||||
#include <tuple>
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
#include <string>
|
||||
|
||||
#define TOKENPASTE(x, y) x##y
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
TEST_CASE("Hashing", "[hash]") {}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
struct foo{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
TEST_CASE("Noexcept", "[noexcept]") {
|
||||
tl::optional<int> o1{4};
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
TEST_CASE("Nullopt", "[nullopt]") {
|
||||
tl::optional<int> o1 = tl::nullopt;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
struct move_detector {
|
||||
move_detector() = default;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "catch.hpp"
|
||||
#include "optional.hpp"
|
||||
#include <tl/optional.hpp>
|
||||
|
||||
TEST_CASE("Relational ops", "[relops]") {
|
||||
tl::optional<int> o1{4};
|
||||
|
Reference in New Issue
Block a user