+void URITestCase::Unescaping()
+{
+ wxString orig = wxT("http://test.com/of/file%3A%2F%2FC%3A%5Curi%5C")
+ wxT("escaping%5Cthat%5Cseems%5Cbroken%5Csadly%5B1%5D.rss");
+
+ wxString works= wxURI(orig).BuildUnescapedURI();
+
+ CPPUNIT_ASSERT(orig.IsSameAs(works) == false);
+
+ wxString orig2 = wxT("http://test.com/of/file%3A%2F%")
+ wxT("2FC%3A%5Curi%5Cescaping%5Cthat%5Cseems%")
+ wxT("5Cbroken%5Csadly%5B1%5D.rss");
+
+ wxString works2 = wxURI::Unescape(orig2);
+ wxString broken2 = wxURI(orig2).BuildUnescapedURI();
+
+ CPPUNIT_ASSERT(works2.IsSameAs(broken2));
+
+}