Commit cf7635fe authored by Matthias Vallentin's avatar Matthias Vallentin

Add test that constructs expected<T> from none_t

parent 414ed837
...@@ -112,3 +112,9 @@ CAF_TEST(move_and_copy) { ...@@ -112,3 +112,9 @@ CAF_TEST(move_and_copy) {
CHECK_NEQ(z, z_cpy); CHECK_NEQ(z, z_cpy);
CHECK_EQ(z, sec::unsupported_sys_key); CHECK_EQ(z, sec::unsupported_sys_key);
} }
CAF_TEST(construction_with_none) {
e_int x{none};
CHECK(!x);
CHECK(!x.error());
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment