]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filename/filenametest.cpp
Start for Pango 1.6 based text rotation.
[wxWidgets.git] / tests / filename / filenametest.cpp
index f91ab53ee4414cdbc56cce2944bc86d35a70887c..1a495e7adddf358996284f5793df26a0800e1546 100644 (file)
@@ -116,6 +116,20 @@ void FileNameTestCase::TestConstruction()
         CPPUNIT_ASSERT( fullname == fni.fullname );
 
         CPPUNIT_ASSERT( fn.Normalize(wxPATH_NORM_ALL, _T(""), fni.format) );
+
+        if ( *fni.volume && *fni.path )
+        {
+            // check that specifying the volume separately or as part of the
+            // path doesn't make any difference
+            wxString pathWithVolume = fni.volume;
+            pathWithVolume += wxFileName::GetVolumeSeparator(fni.format);
+            pathWithVolume += fni.path;
+
+            CPPUNIT_ASSERT( fn == wxFileName(pathWithVolume,
+                                             fni.name,
+                                             fni.ext,
+                                             fni.format) );
+        }
     }
 }