Skip to content

Commit c6268ec

Browse files
committed
#117 - Test CppStringT constructor #9 with char and wchar_t
Tested.
1 parent 8893fd5 commit c6268ec

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,18 @@ namespace cppstringstests
8080
Assert::AreEqual(std::size_t(4), ws.size());
8181
Assert::AreEqual(pcs::CppWString(L"efGH").c_str(), ws.c_str());
8282
}
83+
84+
TEST_METHOD(constructor_09)
85+
{
86+
pcs::CppString s("abcDEfgh");
87+
Assert::AreEqual(std::size_t(8), s.size());
88+
Assert::AreEqual(pcs::CppString("abcDEfgh").c_str(), s.c_str());
89+
90+
pcs::CppWString ws(L"ABCdefGH");
91+
Assert::AreEqual(std::size_t(8), ws.size());
92+
Assert::AreEqual(pcs::CppWString(L"ABCdefGH").c_str(), ws.c_str());
93+
}
94+
95+
8396
};
8497
}

0 commit comments

Comments
 (0)