Commit Graph

174 Commits

Author SHA1 Message Date
Julian Smart
be5a51fb59 More name changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Mattia Barbon
cbca1e087b Converted hash tests to CppUnit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-22 17:51:35 +00:00
Václav Slavík
387f829ed1 moved Unicode tests to testsuite (patch 943945)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-30 20:26:14 +00:00
Václav Slavík
45de6209a9 removed zlib tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-25 08:46:02 +00:00
Václav Slavík
bc10103ec8 moved wxRegEx test from console to testsuite (patch 938995)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 20:17:18 +00:00
Václav Slavík
1cd53e884b added wxString tests (patch 938082)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-20 18:55:09 +00:00
Václav Slavík
1b035b8cd0 applied patch: wxLongLong CppUnit test (928257)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 12:15:27 +00:00
Václav Slavík
cf1014a2e1 moved arrays tests to testsuite (patch 927475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 21:10:33 +00:00
Dimitri Schoolwerth
e9d2bb6f72 Applied patch #875658: "Fixes to console sample"; Further code cleanup.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-28 00:29:07 +00:00
Ryan Norton
8d4dc98f75 Added some notes and other changes.....
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 10:09:36 +00:00
Ryan Norton
24c8053b88 Fixed TEST_SCOPEGUARD (newer version prepends wx to macros...)
C:\\wxWindows\\samples\\console\\console.cpp(3379) : error C2065: 'ON_BLOCK_EXIT0' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3380) : error C2065: 'ON_BLOCK_EXIT1' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3381) : error C2065: 'ON_BLOCK_EXIT2' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3384) : error C2065: 'ON_BLOCK_EXIT_OBJ0' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3385) : error C2065: 'ON_BLOCK_EXIT_OBJ1' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3386) : error C2065: 'ON_BLOCK_EXIT_OBJ2' : undeclared identifier


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 10:02:35 +00:00
Ryan Norton
7e658c4b3e Scopeguard test doesn't work either due to some undefined functions/macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 00:05:35 +00:00
Ryan Norton
34126b5484 quick fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-21 00:04:17 +00:00
Julian Smart
19d821c536 Applied [ 856726 ] Tests for gzip streams
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 11:29:52 +00:00
Vadim Zeitlin
0aa29b6bfb added wxRegConfig read test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-30 13:53:04 +00:00
Mattia Barbon
1a6d9c7680 New wxHashTable implementation when wxUSE_STL == 1. Replaces
the old implementation based upon wxHashMap. Removed support
for wxHashTable in wxHashMap.
  Rationale: using wxHashMap for wxHashTable implementation required
special support in wxHashMap. This precluded using STL-provided
hash_map to implement wxHashMap. This new implementation does not
use keyed wxList interface and should be almost totally compatible
with the old non-STL wxHashTable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-23 08:12:34 +00:00
Vadim Zeitlin
5bc1deebaa added a test for wxTextFile in Unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 15:27:52 +00:00
Václav Slavík
8fef2a9b08 no need for !wxUSE_GUI test anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 17:02:17 +00:00
Julian Smart
f2cb8a1725 Applied patch [ 798596 ] console sample in unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 08:48:48 +00:00
Mattia Barbon
78e6050be8 Fix and testcase for wxString::rfind bug I introduced.
Patch by Robert Vazan.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 21:59:48 +00:00
Mattia Barbon
e21011866e Corrected statements about wxString correctly handling
embedded '\0' characters.
  Fixed various wxString::*find* methods (patch by Robert Vazan),
plus added missing overloaded variants of find_first/last_(not_)of.
Added more tests in console sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-01 20:20:21 +00:00
Mattia Barbon
8ae94823a3 Keep order of nodes when wxHashMap is resized; this ensures
that wxHashTable has the same behaviour when wxUSE_STL=1 as
when wxUSE_STL=0.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-20 16:59:17 +00:00
Mattia Barbon
760d3c7cd3 Fixes for wxHashTable when wxUSE_STL=1:
wxHashTable must work like an hash_multimap, not an hash_map.
wxHashTable::Delete is supposed to actually delete entries
more tests in console sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 21:17:04 +00:00
Mattia Barbon
8142d70447 Added wxHashSet, with minimal tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-12 16:45:09 +00:00
Václav Slavík
6f35ed60d3 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-06 10:58:01 +00:00
Mattia Barbon
e87b783352 Create a new wxStringBase class, providing a STL-like API, using
the current wxString implementation.
  Derive wxString from one of wxStringBase, std::string, std::wstring
depending on wxUSE_STL/wxUSE_UNICODE settings. wxString provides
full compatibility with the old wxString in both wxUSE_STL=0 and
wxUSE_STL=1 modes (except for [Un]getWriteBuffer).
  Add some configure checks for std::string features.
  Add tests for STL API in console sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-24 19:44:57 +00:00
Mattia Barbon
df5168c427 Added --use-stl to cnfigure, wxUSE_STL to setup0.h
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
  Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
  Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
  Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
  Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
  When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
  Made wxBase compile when wxUSE_STL=1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Vadim Zeitlin
c66cca2af0 added wxScopeGuard; test it in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-05 23:56:08 +00:00
Vadim Zeitlin
7e0777dabb added test for wxFileConfig::DeleteEntry
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-28 15:28:57 +00:00
Julian Smart
2ab25aca26 Removed obsolete wxDate and wxTime classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-23 20:14:19 +00:00
Vadim Zeitlin
cab8f76eb8 fixed a crash in socket server test and added quit command to the server
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-27 00:18:44 +00:00
Václav Slavík
e046e5f1e7 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 12:36:48 +00:00
Vadim Zeitlin
2f0c19d0a8 minor changes to wxDir test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-24 00:07:42 +00:00
Václav Slavík
e7266247d5 added wxFileName::MakeRelative test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-18 00:03:30 +00:00
Vadim Zeitlin
3993765614 added trivial test for wxTextInputStream
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-07 00:31:56 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
4c51b68810 compilation fix in !WXWIN_COMPATIBILITY_2_2 mode; set TEST_ALL to 1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-11-28 13:29:22 +00:00
Vadim Zeitlin
f1389d464a Windows and Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-10 23:27:24 +00:00
Vadim Zeitlin
7aeebdcd3d added printf() test suite
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-10 13:36:40 +00:00
Vadim Zeitlin
ee3ef2817f variosu fixes to the tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 23:11:18 +00:00
Vadim Zeitlin
50ded68d38 corrected wxExecute() tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 00:46:38 +00:00
Vadim Zeitlin
456ae26d78 the sample now builds in Unicode mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 00:27:40 +00:00
Vadim Zeitlin
e7d41190e0 added tests for wxString::To/FromAscii
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 15:07:51 +00:00
Vadim Zeitlin
99a5af7f72 added wxMemoryOutputStream test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-21 22:07:13 +00:00
Vadim Zeitlin
9475670f13 typo in dir enum test code fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-08 18:30:27 +00:00
Vadim Zeitlin
f06ef5f4a3 more MIME tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-07 19:56:57 +00:00
Vadim Zeitlin
6307da56b8 added \\server\dir\filename.exe test case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-22 22:48:15 +00:00
Vadim Zeitlin
149147e1b7 added wxDir::Exists() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-22 22:28:34 +00:00
Vadim Zeitlin
2104ba3194 fixed zlib compression test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-11 15:09:10 +00:00
Vadim Zeitlin
ba6ea19e4f some warnings fixed, checks for various wxUSE_XXX added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-10 19:21:42 +00:00