From e1f9d9ca1ef3c69da3b887b0af298be0aea4a5f9 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 23 Oct 2024 00:20:05 +0200 Subject: More work on testing framework --- asl/tests/option_tests.cpp | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'asl/tests') diff --git a/asl/tests/option_tests.cpp b/asl/tests/option_tests.cpp index 7de1f9c..a42592a 100644 --- a/asl/tests/option_tests.cpp +++ b/asl/tests/option_tests.cpp @@ -24,7 +24,32 @@ static_assert(asl::move_assignable>); static_assert(asl::move_assignable>); static_assert(!asl::move_assignable>); -ASL_TEST(Option, cheese) +ASL_TEST(Option_cheese) +{ + asl::option a; + asl::option b; + + a = ASL_MOVE(b); +} + +ASL_TEST(Option_cheese2) +{ + asl::option a; + asl::option b; + + a = ASL_MOVE(b); +} + +ASL_TEST(Option_cheese3) +{ + asl::option a; + asl::option b; + + a = ASL_MOVE(b); + asl::testing::report_failure("OH NO", __FILE__, __LINE__); +} + +ASL_TEST(Option_cheese4) { asl::option a; asl::option b; -- cgit