Add tests for wxString move constructors

This commit is contained in:
Pavel Tyunin
2021-06-30 19:59:18 +03:00
parent 31ca15fa47
commit 974feb4c39

View File

@@ -29,6 +29,8 @@ TEST_CASE("StdString::Constructors", "[stdstring]")
s6(s3, 0, 8),
s7(s3.begin(), s3.begin() + 8);
wxString s8(s1, 4, 8);
wxString s9(wxString(s1, 8)),
s10(wxString(s3), 8);
CHECK( s1 == wxT("abcdefgh") );
CHECK( s2 == s1 );
@@ -37,6 +39,8 @@ TEST_CASE("StdString::Constructors", "[stdstring]")
CHECK( s6 == s1 );
CHECK( s7 == s1 );
CHECK( s8 == wxT("efgh") );
CHECK( s9 == wxT("abcdefgh"));
CHECK( s10 == s1 );
const char *pc = s1.c_str();
CHECK( wxString(pc + 1, pc + 4) == "bcd" );