Remove UString. And replaced std::map to std::unordered_map

This commit is contained in:
Jiga228
2025-10-15 18:20:27 +07:00
parent 87c72e4a48
commit 189a6d43fe
5 changed files with 13 additions and 203 deletions
-2
View File
@@ -11,10 +11,8 @@ FetchContent_MakeAvailable(googletest)
enable_testing()
file(GLOB SRC
"UStringTest.cpp"
"SaveMapTest.cpp"
"${PROJECT_SOURCE_DIR}/Core/Types/UString.cpp"
"${PROJECT_SOURCE_DIR}/Core/Game/SaveMap/SaveMap.cpp"
)
-25
View File
@@ -1,25 +0,0 @@
#include <gtest/gtest.h>
#include "Types/UString.hpp"
#include <cstring>
TEST(UStringTest, creae_string)
{
UString str("Hello, World!");
EXPECT_EQ(str, "Hello, World!");
EXPECT_NE(str, "Hello, UwU!");
EXPECT_EQ(str.length(), 13);
}
TEST(UStringTest, concatenate_string)
{
UString str1("Hello, ");
UString str2("World!");
str1 += str2;
EXPECT_EQ(str1, "Hello, World!");
EXPECT_EQ(str1.length(), 13);
UString str3("Hello, ");
str3 += "UwU!";
EXPECT_EQ(str3, "Hello, UwU!");
EXPECT_EQ(str3.length(), 11);
}