summaryrefslogtreecommitdiff
path: root/test/test_result.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-29 21:02:25 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-29 21:02:25 -0500
commit8ce397e8c0a83e49e390de9deb73d588e4931ecf (patch)
tree31f4f4facf0cb75535aaec130d606c54fe97b2d8 /test/test_result.cpp
parentf281050ddb3b9d658cff67a254eedc3b79de5c5d (diff)
Reworking of Result.
Diffstat (limited to 'test/test_result.cpp')
-rw-r--r--test/test_result.cpp7
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