Add GetWorld to Actor. Integrate google test. Add Model manager class. Rename *.h to *.hpp files
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user