diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-23 00:20:05 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | e1f9d9ca1ef3c69da3b887b0af298be0aea4a5f9 (patch) | |
tree | 3da091d697177d178841fae7b2980b6c152e25c1 /asl/tests | |
parent | 8c95db33be58a545dd2e030428bded0bd958c4b6 (diff) |
More work on testing framework
Diffstat (limited to 'asl/tests')
-rw-r--r-- | asl/tests/option_tests.cpp | 27 |
1 files changed, 26 insertions, 1 deletions
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<asl::option<int>>); static_assert(asl::move_assignable<asl::option<CopyAssignable>>);
static_assert(!asl::move_assignable<asl::option<NonMoveAssignable>>);
-ASL_TEST(Option, cheese)
+ASL_TEST(Option_cheese)
+{
+ asl::option<int> a;
+ asl::option<int> b;
+
+ a = ASL_MOVE(b);
+}
+
+ASL_TEST(Option_cheese2)
+{
+ asl::option<int> a;
+ asl::option<int> b;
+
+ a = ASL_MOVE(b);
+}
+
+ASL_TEST(Option_cheese3)
+{
+ asl::option<int> a;
+ asl::option<int> b;
+
+ a = ASL_MOVE(b);
+ asl::testing::report_failure("OH NO", __FILE__, __LINE__);
+}
+
+ASL_TEST(Option_cheese4)
{
asl::option<int> a;
asl::option<int> b;
|