From: Brion Vibber
Date: Sun, 17 Oct 2004 07:33:03 +0000 (+0000)
Subject: Add test for links with double-escaped hex codes (raw hex codes in titles are now...
X-Git-Tag: 1.5.0alpha1~1527
X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=baa494f7811a392ca47ffdb643d9cf3947d758ca;p=lhc%2Fweb%2Fwiklou.git
Add test for links with double-escaped hex codes (raw hex codes in titles are now illegal as they don't survive round-trip conversion and thus are inaccessible)
---
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index de50f9f73d..96dd225fc0 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -856,6 +856,32 @@ Link containing }
!! end
+!! test
+Link containing % (not as a hex sequence)
+!! input
+[[7% Solution]]
+!! result
+7% Solution
+
+!! end
+
+!! test
+Link containing % as a single hex sequence interpreted to char
+!! input
+[[7%25 Solution]]
+!! result
+7% Solution
+
+!!end
+
+!! test
+Link containing % as a double hex sequence interpreted to hex sequence
+!! input
+[[7%2525 Solution]]
+!! result
+[[7%2525 Solution]]
+
+!!end
!! test
Plain link to URL