From cb9fa588ba8144fcdd52ba4b83d69d93fb18066f Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 30 Mar 2025 23:08:43 -0500 Subject: Add hash map. --- test/test_option.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_option.cpp') 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 optString{std::move(String::makeFromCString("foo").takeOkay())}; + EXPECT_TRUE(optString.hasValue()); +} + + } // namespace fud -- cgit v1.2.3