diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-23 07:45:27 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-23 07:45:27 -0500 |
commit | d6497e9ad3924711990b4452993f20c2603fd955 (patch) | |
tree | d01cce612c61d9de8a80194626e0a819dc30bf0d /test/test_string.cpp | |
parent | 0b860bb5dd6d2007db605291d239a6a9d41f57d1 (diff) |
Fix bug in string.
Diffstat (limited to 'test/test_string.cpp')
-rw-r--r-- | test/test_string.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_string.cpp b/test/test_string.cpp index 3b8c3aa..d48112b 100644 --- a/test/test_string.cpp +++ b/test/test_string.cpp @@ -53,6 +53,13 @@ TEST(FudString, BasicStringOps) ASSERT_TRUE(view2.nullTerminated()); } +TEST(FudString, HeapAlloc) +{ + constexpr const char filenameLiteral[] = "Amazing Saga Volume 01/000.jpg"; + fud::String filename{filenameLiteral}; + ASSERT_EQ(filename.length(), sizeof(filenameLiteral) - 1); +} + #if 0 TEST(FudString, FindSubstringCxx) { |