diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-03-30 23:08:43 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-03-30 23:08:43 -0500 |
commit | cb9fa588ba8144fcdd52ba4b83d69d93fb18066f (patch) | |
tree | 214574ca68c1551ec76e7fbb9e0263793180231d /test/test_option.cpp | |
parent | 1d357adfa19725ee69fb267a363f1fd217b1272f (diff) |
Add hash map.
Diffstat (limited to 'test/test_option.cpp')
-rw-r--r-- | test/test_option.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_option.cpp b/test/test_option.cpp index a503a5f..b900858 100644 --- a/test/test_option.cpp +++ b/test/test_option.cpp @@ -16,6 +16,7 @@ */ #include "fud_option.hpp" +#include "fud_string.hpp" #include "gtest/gtest.h" @@ -51,4 +52,11 @@ TEST(OptionTest, OptionRef) ASSERT_EQ(value, 42); } +TEST(OptionTest, OptionString) +{ + Option<String> optString{std::move(String::makeFromCString("foo").takeOkay())}; + EXPECT_TRUE(optString.hasValue()); +} + + } // namespace fud |