mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-03-24 03:13:13 +08:00
Add tests for wxString move constructors
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user