From d483da3c764da389871afc5887856f394f2c6880 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 29 Mar 2007 16:14:26 +0000 Subject: [PATCH] more wxString::append() tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/strings/stdstrings.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/strings/stdstrings.cpp b/tests/strings/stdstrings.cpp index 0e706ca6e8..a50f65ab21 100644 --- a/tests/strings/stdstrings.cpp +++ b/tests/strings/stdstrings.cpp @@ -100,19 +100,21 @@ void StdStringTestCase::StdAppend() { wxString s1, s2, s3, s4, s5, s6, s7, s8; - s1 = s2 = s3 = s4 = s5 = s6 = _T("abc"); + s1 = s2 = s3 = s4 = s5 = s6 = s7 = _T("abc"); s1.append(_T("def")); s2.append(_T("defgh"), 3); s3.append(wxString(_T("abcdef")), 3, 6); s4.append(s1); s5.append(3, _T('a')); + s5.append(2, 'x'); + s5.append(1, (unsigned char)'y'); s6.append(s1.begin() + 3, s1.end()); CPPUNIT_ASSERT( s1 == _T("abcdef") ); CPPUNIT_ASSERT( s2 == _T("abcdef") ); CPPUNIT_ASSERT( s3 == _T("abcdef") ); CPPUNIT_ASSERT( s4 == _T("abcabcdef") ); - CPPUNIT_ASSERT( s5 == _T("abcaaa") ); + CPPUNIT_ASSERT( s5 == _T("abcaaaxxy") ); CPPUNIT_ASSERT( s6 == _T("abcdef") ); s7 = s8 = wxString(_T("null\0time"), 9); -- 2.45.2