PIStringTests_21-30 #61

Merged
andrey merged 4 commits from PIStringTests_21-30 into master 2021-01-25 11:39:52 +03:00
Showing only changes of commit b2b030d032 - Show all commits

View File

@@ -148,7 +148,7 @@ TEST(PIString_Tests, construct_from_cstring){
ASSERT_EQ(res, PIString(str1));
}
TEST(PIString_Tests, construct_from_wchar_t){
TEST(PIString_Tests, construct_from_wchar_string){
wchar_t str1[] = L"gav";
PIString res = "gav";
ASSERT_EQ(res, PIString(str1));
@@ -161,8 +161,8 @@ TEST(PIString_Tests, construct_from_pibyte_array){
ASSERT_EQ(res, PIString(str1));
}
TEST(PIString_Tests, construct_from_pichar_size){
PIChar *str1 = new PIChar[3];
TEST(PIString_Tests, construct_from_pichar_array){
PIChar str1[3];
str1[0] = 'n';
str1[1] = 'e';
str1[2] = 'w';
@@ -170,7 +170,7 @@ TEST(PIString_Tests, construct_from_pichar_size){
ASSERT_EQ(res, PIString(str1, 3));
}
TEST(PIString_Tests, construct_from_cstring_size){
TEST(PIString_Tests, construct_from_char_array){
char str1[] = "good";
PIString res = "good";
ASSERT_EQ(res, PIString(str1, 4));
@@ -200,6 +200,7 @@ TEST(PIString_Tests, operator_assignment_move){
PIString str;
str = move(str1);
ASSERT_EQ(PIString("testing"), str);
ASSERT_TRUE(str1.isEmpty());
}
TEST(PIString_Tests, operator_symbol){