summaryrefslogtreecommitdiff
path: root/test/test_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_string.cpp')
-rw-r--r--test/test_string.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_string.cpp b/test/test_string.cpp
index d48112b..15646bd 100644
--- a/test/test_string.cpp
+++ b/test/test_string.cpp
@@ -56,10 +56,18 @@ TEST(FudString, BasicStringOps)
TEST(FudString, HeapAlloc)
{
constexpr const char filenameLiteral[] = "Amazing Saga Volume 01/000.jpg";
- fud::String filename{filenameLiteral};
+ String filename{filenameLiteral};
ASSERT_EQ(filename.length(), sizeof(filenameLiteral) - 1);
}
+TEST(FudString, Reserve)
+{
+ String testString{};
+ ASSERT_TRUE(testString.valid());
+ ASSERT_EQ(testString.reserve(256), FudStatus::Success);
+ ASSERT_TRUE(testString.valid());
+}
+
#if 0
TEST(FudString, FindSubstringCxx)
{