summaryrefslogtreecommitdiff
path: root/test/test_option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_option.cpp')
-rw-r--r--test/test_option.cpp8
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