added wxFileName::MakeRelative test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-01-18 00:03:30 +00:00
parent 65d8ef1e73
commit e7266247d5

View File

@ -1034,6 +1034,24 @@ static void TestFileNameMakeRelative()
}
}
static void TestFileNameMakeAbsolute()
{
wxPuts(_T("*** testing wxFileName::MakeAbsolute() ***"));
for ( size_t n = 0; n < WXSIZEOF(filenames); n++ )
{
const FileNameInfo& fni = filenames[n];
wxFileName fn(fni.fullname, fni.format);
wxPrintf(_T("'%s' absolutized: "),
fn.GetFullPath(fni.format).c_str());
fn.MakeAbsolute();
wxPrintf(_T("'%s'\n"), fn.GetFullPath(fni.format).c_str());
}
wxPuts(_T(""));
}
static void TestFileNameComparison()
{
// TODO!
@ -6429,6 +6447,7 @@ int main(int argc, char **argv)
{
TestFileNameConstruction();
TestFileNameMakeRelative();
TestFileNameMakeAbsolute();
TestFileNameSplit();
TestFileNameTemp();
TestFileNameCwd();