Skip to content

Commit 52404a8

Browse files
committed
#175-Test CppStringT::title() with char and wchar_t
Completed. Validated.
1 parent ce29faf commit 52404a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cpp-strings-tests/cpp-strings-tests.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,5 +3873,18 @@ namespace cppstringstests
38733873
}
38743874
}
38753875

3876+
TEST_METHOD(title)
3877+
{
3878+
CppString text("to bE TiTlEd - cheCKing,errors, in Case oF aNy fOUNd");
3879+
CppString expected("To Be Titled - Checking,errors, In Case Of Any Found");
3880+
CppString res{ text.title() };
3881+
Assert::AreEqual(expected.c_str(), res.c_str());
3882+
3883+
CppWString wtext(L"to bE TiTlEd - cheCKing,errors, in Case oF aNy fOUNd\u2026\x86");
3884+
CppWString wexpected(L"To Be Titled - Checking,errors, In Case Of Any Found\u2026\x86");
3885+
CppWString wres{ wtext.title() };
3886+
Assert::AreEqual(wexpected.c_str(), wres.c_str());
3887+
3888+
}
38763889
};
38773890
}

0 commit comments

Comments
 (0)