Francesco Montorsi
|
ca5016d4dd
|
make sure that wxProcess always have a valid PID set; add test unit for wxExecute,wxShell,wxProcess based on the code in the console sample; add some more infos/notes in wxProcess docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-23 16:23:44 +00:00 |
|
Francesco Montorsi
|
12e91a550c
|
fix typo; use C locale for VsnprintfTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-23 12:17:39 +00:00 |
|
Francesco Montorsi
|
529e491ce0
|
add the ToCLong, ToCULong and ToCDouble functions, with docs and test units
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-20 14:50:06 +00:00 |
|
Francesco Montorsi
|
fdfc5e18e7
|
comment-out tests provoking a low-level assert from debug CRT libs in MSVC 2008 (2005 probably affected too)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-20 01:03:38 +00:00 |
|
Václav Slavík
|
862bb5c73a
|
renamed ATTRIBUTE_PRINTF to WX_ATTRIBUTE_PRINTF to avoid naming conflicts (e.g. with latest libxml2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-11 07:51:38 +00:00 |
|
Vadim Zeitlin
|
072682ce44
|
optimize Replace() to use a linear algorithm (closes #9135)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-03-07 16:07:58 +00:00 |
|
Francesco Montorsi
|
35d3edcd53
|
make the testcase more readable; add a few checks to Asterisk() test; make unicode part of S() test compile with MSVC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-02-18 14:57:42 +00:00 |
|
Francesco Montorsi
|
103339b01e
|
fixed test failures under wxMSW when using our wxVsnprintf implementation (remains 1 bug introduced by the wx29 string changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-02-17 11:11:50 +00:00 |
|
Vadim Zeitlin
|
166523d8d7
|
calling wcsnlen(NULL) does crash (under Debian and, according to the docs, should also crash with MSVC), contrary to what the comment claimed so don't do this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-16 17:48:59 +00:00 |
|
Francesco Montorsi
|
7c5ac499c8
|
provide our own implementation of wxStrnlen if it's not available; add tests for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-13 12:01:30 +00:00 |
|
Vadim Zeitlin
|
39e12b2d52
|
don't use \u in strings, VC6 doesn't support this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2009-01-04 15:53:09 +00:00 |
|
Vadim Zeitlin
|
93a800a95e
|
minor icc warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-11-19 09:55:27 +00:00 |
|
Vadim Zeitlin
|
527587d347
|
really fix VC6 compilation of all testsi (without breaking VC9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-11-03 00:31:16 +00:00 |
|
Vadim Zeitlin
|
94bc35dc33
|
explicitly cast wxUniCharRef to char inside CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-11-02 01:59:34 +00:00 |
|
Vadim Zeitlin
|
c565abe1c5
|
fix After{First,Last}() to work for strings with non-ASCII characters in UTF-8 build and added unit tests for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-09-29 12:08:44 +00:00 |
|
Václav Slavík
|
6bd4f2812d
|
fixed writing to wxUniCharRef after its 'parent' iterator was destroyed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-26 13:02:38 +00:00 |
|
Vadim Zeitlin
|
817d057840
|
added test for Replace(whatever, "")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-09 15:50:24 +00:00 |
|
Vadim Zeitlin
|
0c7db140c5
|
add wxString::Capitalize() and MakeCapitalized() for consistency with Upper/Lower() we already have
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-08-01 23:39:11 +00:00 |
|
Václav Slavík
|
2f539d953b
|
added a test for passing wxCharBufer to wxprintf functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-29 13:32:35 +00:00 |
|
Vadim Zeitlin
|
e3276230de
|
fix bug with wxCSConv("ASCII")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-19 01:45:38 +00:00 |
|
Vadim Zeitlin
|
1de532f57e
|
get rid of special WX_ASSERT_FOO_EQUAL macros by defining CppUnit::assertEquals() overloads for wx types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-18 23:07:23 +00:00 |
|
Vadim Zeitlin
|
42e8b52f09
|
make test failures easier to debug by using more informative failure messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-17 23:24:21 +00:00 |
|
Vadim Zeitlin
|
ae43193571
|
don't run the tests which can't succeed in ANSI build; remove the tests for wxUSE_WCHAR_T, it's always 1 now; test MB2WC conversions in Unicode build too (it only tested WC2MB for some reason)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-17 23:01:17 +00:00 |
|
Vadim Zeitlin
|
339e08c704
|
use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-15 18:00:49 +00:00 |
|
Vadim Zeitlin
|
fa0584f14d
|
use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-07-15 17:38:03 +00:00 |
|
Vadim Zeitlin
|
062dc5fc22
|
initialize wxStringBuffer with the original contents of wxString it was created from for better compatibility with the old, non-STL, build (this avoids problems such as ticket #4845); add wxString::tchar_buf() to help with the implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-06-06 21:19:23 +00:00 |
|
Vadim Zeitlin
|
44c6d979a8
|
removed the test which never works: Lower/Upper() don't work with Unicode strings currently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-06-06 20:55:39 +00:00 |
|
Vadim Zeitlin
|
7ace5fd8e0
|
include wx/crt.h to get wxUSE_WXVSNPRINTF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-06-01 16:58:17 +00:00 |
|
Vadim Zeitlin
|
05b5a45f96
|
don't run vsnprintf() test if we're using the system version, there is nothing we can do about its failures then anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-05-30 22:11:51 +00:00 |
|
Vadim Zeitlin
|
fc215b4140
|
don't compile the test in the build configurations where it's not supported (trying to fix buildbot OS X build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-05-30 21:59:24 +00:00 |
|
Michael Wetherell
|
6ed28b941c
|
Compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-02-20 22:28:02 +00:00 |
|
Vadim Zeitlin
|
5098c258b2
|
compilation fixes for VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-13 01:13:03 +00:00 |
|
Vadim Zeitlin
|
f312f981b5
|
added tests for FromAscii/Unicode() (length parameter); cleaned up ctors test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-12 20:58:03 +00:00 |
|
Michael Wetherell
|
31c0639151
|
Missing header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2008-01-02 08:04:30 +00:00 |
|
Vadim Zeitlin
|
99d8bc6593
|
added a trivial test for wxString stream insertion operators
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-10-09 00:10:07 +00:00 |
|
Vadim Zeitlin
|
2452025c59
|
fix a couple of harmless warnings in MSVC build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-09-14 23:33:46 +00:00 |
|
Vadim Zeitlin
|
c2c87924e7
|
use WX_ASSERT_STR/SIZET_EQUAL instead of CPPUNIT_ASSERT_EQUAL with casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-30 20:21:49 +00:00 |
|
Vadim Zeitlin
|
fe1b98f5d5
|
fix resize() when it's used for truncating a string in UTF-8 build; added test for this bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-30 18:13:29 +00:00 |
|
Václav Slavík
|
4734640692
|
fixed variadic templates in the case when char value is passed in place of (e.g.) %i or %d argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-20 19:20:10 +00:00 |
|
Václav Slavík
|
628f87da56
|
added wxUTF8StringBuffer for writing UTF8 data into wxString efficiently, similarly to existing wxStringBuffer classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-20 15:19:15 +00:00 |
|
Václav Slavík
|
74374c9ecd
|
Vadim's new test broke subsequent asserts, fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-20 12:30:06 +00:00 |
|
Vadim Zeitlin
|
c8f313b256
|
added tests demonstrating a bug in wxString::assign(itself)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-08-20 10:38:22 +00:00 |
|
Vadim Zeitlin
|
b899f05f9e
|
harmless warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-07-23 22:34:29 +00:00 |
|
Vadim Zeitlin
|
1a5cd56aac
|
compilation fix for ANSI build (added #if wxUSE_UNICODE)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-07-04 20:35:42 +00:00 |
|
Václav Slavík
|
7315ad282d
|
test wxVsnprintf() printing to both wchar_t* and char* buffers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-29 17:30:56 +00:00 |
|
Václav Slavík
|
39c20230ba
|
1. added default constructors for wxString iterators
2. fixed assignment of iterator to iterator that points to a different string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-28 12:49:58 +00:00 |
|
Václav Slavík
|
81e9dec6f5
|
use same names for test suites as the ones in ./test -l
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-28 07:54:15 +00:00 |
|
Václav Slavík
|
7978bc7293
|
remove implicit conversion to C strings from wxString if wxUSE_STL=1; this fixes problems with converting between wxString and std::string in some situations at the cost of having to use c_str() explicitly just as you have to when using std::string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-20 07:47:51 +00:00 |
|
Vadim Zeitlin
|
105260e89f
|
overload wxStrpbrk() for more types and add tests for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-13 15:31:09 +00:00 |
|
Vadim Zeitlin
|
f291c98e52
|
use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT as this gives more detailed information in case of a test failure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2007-06-13 14:29:02 +00:00 |
|