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:
@@ -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()
|
static void TestFileNameComparison()
|
||||||
{
|
{
|
||||||
// TODO!
|
// TODO!
|
||||||
@@ -6429,6 +6447,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
TestFileNameConstruction();
|
TestFileNameConstruction();
|
||||||
TestFileNameMakeRelative();
|
TestFileNameMakeRelative();
|
||||||
|
TestFileNameMakeAbsolute();
|
||||||
TestFileNameSplit();
|
TestFileNameSplit();
|
||||||
TestFileNameTemp();
|
TestFileNameTemp();
|
||||||
TestFileNameCwd();
|
TestFileNameCwd();
|
||||||
|
Reference in New Issue
Block a user