+
+void URITestCase::FileScheme()
+{
+ //file:// variety (NOT CONFORMANT TO THE RFC)
+ CPPUNIT_ASSERT(wxURI(wxString(wxT("file://e:/wxcode/script1.xml"))).GetPath()
+ == wxT("e:/wxcode/script1.xml") );
+
+ //file:/// variety
+ CPPUNIT_ASSERT(wxURI(wxString(wxT("file:///e:/wxcode/script1.xml"))).GetPath()
+ == wxT("/e:/wxcode/script1.xml") );
+
+ //file:/ variety
+ CPPUNIT_ASSERT(wxURI(wxString(wxT("file:/e:/wxcode/script1.xml"))).GetPath()
+ == wxT("/e:/wxcode/script1.xml") );
+
+ //file: variety
+ CPPUNIT_ASSERT(wxURI(wxString(wxT("file:e:/wxcode/script1.xml"))).GetPath()
+ == wxT("e:/wxcode/script1.xml") );
+}
+