summaryrefslogtreecommitdiff
path: root/asl/tests/option_tests.cpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-22 19:04:58 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit53b9ec80a3b7bb7e403a8c7330c0741484b9ba4d (patch)
treeca5e967c315e08071c432a1f7b589618ed3801e5 /asl/tests/option_tests.cpp
parentdefa7e1b9e16c6276e17a39b61d019c1a116472b (diff)
Don't force niched values to be move assignable in reset, and fix warnings
Diffstat (limited to 'asl/tests/option_tests.cpp')
-rw-r--r--asl/tests/option_tests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/asl/tests/option_tests.cpp b/asl/tests/option_tests.cpp
index 8b98c99..15367f1 100644
--- a/asl/tests/option_tests.cpp
+++ b/asl/tests/option_tests.cpp
@@ -308,4 +308,7 @@ ASL_TEST(niche)
opt = opt2;
ASL_TEST_EXPECT(opt2.has_value());
ASL_TEST_EXPECT(opt2.value().value == 2);
+
+ opt.reset();
+ ASL_TEST_EXPECT(!opt.has_value());
}