From d6497e9ad3924711990b4452993f20c2603fd955 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 07:45:27 -0500 Subject: Fix bug in string. --- test/test_string.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_string.cpp') 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) { -- cgit v1.2.3