Commit Graph

85 Commits

Author SHA1 Message Date
Vadim Zeitlin
b3f76d404f disable warning about using deprecated wxStripExtension() for MSVC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 22:20:59 +00:00
Francesco Montorsi
395f3aa8bd rewrite wxContractPath as wxFileName::ReplaceEnvVariable and wxFileName::ReplaceHomeDir; add test units and docs for them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-07 00:38:46 +00:00
Vadim Zeitlin
a779d8091c fix comparison in Normalize() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-19 11:52:04 +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
ea6319cb38 don't replace . and .. with the corresponding directoties names in GetLongPath() as this breaks the normalization of file names without wxPATH_NORM_DOTS flag (#9814)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 15:15:32 +00:00
Vadim Zeitlin
5fed01a943 fix VC9 compilation: FileNameInfo identifier conflicts with an enum name in the SDK it uses, so rename it to TestFileNameInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 09:20:10 +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
9a0c5c012a do case normalization after long path one, this fixes the problem with incorrect paths case under Vista (closes 9162)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-24 14:42:40 +00:00
Vadim Zeitlin
c7099635d1 add tests for wxPATH_NORM_CASE (unsuccessfully trying to reproduce the problem of #9162)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-18 11:38:33 +00:00
Vadim Zeitlin
8e08370217 work around VC7 compiler bug resulting in a warning about FileNameTest being never instantiatable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-18 11:14:20 +00:00
Václav Slavík
4f03ec887b converting temporary wxString to const wxChar* and storing that doesn't work (and doesn't even compile if wxUSE_STL), fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 16:25:33 +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
Václav Slavík
e7b54c0721 fixed typo: _T(), not _()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 14:55:02 +00:00
Vadim Zeitlin
9b9596de5e corrected tests to deal with multiple consecutive (back)slashes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 14:49:50 +00:00
Vadim Zeitlin
34841b216c added test for parsing c:\\aaa\bbb\ccc paths (aaa shouldn't be interpreted as network share)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 14:13:23 +00:00
Vadim Zeitlin
698581160d for for initializing wxFileName with empty string returning true from IsOk() and tests for the correct behaviour (patch 1617156)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-16 23:11:48 +00:00
Vadim Zeitlin
b51abd7380 Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-09 15:58:32 +00:00
Vadim Zeitlin
ab8576b4ac fix Normalize() test by using dummy working directory allowing the test to work even when it's ran from the root directory or its subdirectory (this message also applies to the previous, accidental, commit of this file)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 19:09:13 +00:00
Vadim Zeitlin
c217396535 use CPPUNIT_ASSERT_MESSAGE() to show which test exactly failed; use more CPPUNIT_ASSERT_EQUAL()s instead of simple CPPUNIT_ASSERT()s for the same purpose
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 19:06:32 +00:00
Vadim Zeitlin
2264775b8a use CPPUNIT_ASSERT_MESSAGE() to show which test exactly failed; use more CPPUNIT_ASSERT_EQUAL()s instead of simple CPPUNIT_ASSERT()s for the same purpose
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 19:02:56 +00:00
Michael Wetherell
f7c69b905d Compile fix for no-pch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 22:41:24 +00:00
Robert Roebling
bf7f7793e9 [ 1585253 ] Various important bugfixes to wxFileName::Normalize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 21:08:21 +00:00
Vadim Zeitlin
523cd68ad4 fixed wrong test (patch 1532411)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 01:05:19 +00:00
Vadim Zeitlin
33366127e8 added filename comparison test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 15:02:56 +00:00
Włodzimierz Skiba
3f302e7533 Unicode fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-23 16:53:30 +00:00
Vadim Zeitlin
60c0dfe53b added (trivial) GetLong/ShortPath() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 19:37:00 +00:00
Vadim Zeitlin
dfecbee579 support filenames with empty extension (foo.) (bug 1078200)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 00:18:37 +00:00
Ryan Norton
ff3d9a3532 better name - add newline to end of file for dumber compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-02 00:02:11 +00:00
Ryan Norton
c08dd08b3e add wxStripExtension test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 23:58:11 +00:00
Ryan Norton
8899b155a1 [ 1068188 ] Precompiled header for the test program [Modified a bit]
Regen bakefiles for unit tests


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 05:00:19 +00:00
Vadim Zeitlin
4c2deb19e0 handle volume part of the path correctly in wxFileName(path, name, ext) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-07 20:11:42 +00:00
Ryan Norton
a9e9946154 Rename some tests to avoid conflicts with project builder GUI debugger
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 04:41:27 +00:00
Václav Slavík
67050b6d4a corrected SetPath tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 13:29:32 +00:00
Vadim Zeitlin
4524a24b40 added SetPath() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 14:01:36 +00:00
Vadim Zeitlin
f095b1fc57 added wxFileName test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 13:27:42 +00:00