diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 21:02:25 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 21:02:25 -0500 |
commit | 8ce397e8c0a83e49e390de9deb73d588e4931ecf (patch) | |
tree | 31f4f4facf0cb75535aaec130d606c54fe97b2d8 /test/test_result.cpp | |
parent | f281050ddb3b9d658cff67a254eedc3b79de5c5d (diff) |
Reworking of Result.
Diffstat (limited to 'test/test_result.cpp')
-rw-r--r-- | test/test_result.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_result.cpp b/test/test_result.cpp index 5eadd8c..414941a 100644 --- a/test/test_result.cpp +++ b/test/test_result.cpp @@ -15,8 +15,8 @@ * limitations under the License. */ -#include "fud_status.hpp" #include "fud_result.hpp" +#include "fud_status.hpp" #include "gtest/gtest.h" @@ -49,4 +49,9 @@ TEST(ResultTest, ErrResult) ASSERT_EQ(err2.getError(), FudStatus::ArgumentInvalid); } +TEST(ResultTest, ImplicitConversion) +{ + // Result<int, int16_t> foo = Result<int, int16_t>::okay(-1); +} + } // namespace fud |