From 8c95db33be58a545dd2e030428bded0bd958c4b6 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 16 Oct 2024 22:54:34 +0200 Subject: Start work on the testing framework --- asl/tests/option_tests.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 asl/tests/option_tests.cpp (limited to 'asl/tests/option_tests.cpp') diff --git a/asl/tests/option_tests.cpp b/asl/tests/option_tests.cpp new file mode 100644 index 0000000..7de1f9c --- /dev/null +++ b/asl/tests/option_tests.cpp @@ -0,0 +1,33 @@ +#include "asl/option.hpp" +#include "asl/tests/test_types.hpp" +#include + +static_assert(asl::trivially_destructible>); +static_assert(!asl::trivially_destructible>); + +static_assert(asl::copy_constructible>); +static_assert(asl::copy_constructible>); +static_assert(!asl::copy_constructible>); +static_assert(!asl::copy_constructible>); + +static_assert(asl::move_constructible>); +static_assert(asl::move_constructible>); +static_assert(asl::move_constructible>); +static_assert(!asl::move_constructible>); + +static_assert(asl::copy_assignable>); +static_assert(asl::copy_assignable>); +static_assert(!asl::copy_assignable>); +static_assert(!asl::copy_assignable>); + +static_assert(asl::move_assignable>); +static_assert(asl::move_assignable>); +static_assert(!asl::move_assignable>); + +ASL_TEST(Option, cheese) +{ + asl::option a; + asl::option b; + + a = ASL_MOVE(b); +} -- cgit