Add test for links with double-escaped hex codes (raw hex codes in titles are now...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 17 Oct 2004 07:33:03 +0000 (07:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 17 Oct 2004 07:33:03 +0000 (07:33 +0000)
maintenance/parserTests.txt

index de50f9f..96dd225 100644 (file)
@@ -856,6 +856,32 @@ Link containing }
 </p>
 !! end
 
+!! test
+Link containing % (not as a hex sequence)
+!! input
+[[7% Solution]]
+!! result
+<p><a href="/index.php?title=7%25_Solution&amp;action=edit" class="new" title="7% Solution">7% Solution</a>
+</p>
+!! end
+
+!! test
+Link containing % as a single hex sequence interpreted to char
+!! input
+[[7%25 Solution]]
+!! result
+<p><a href="/index.php?title=7%25_Solution&amp;action=edit" class="new" title="7% Solution">7% Solution</a>
+</p>
+!!end
+
+!! test
+Link containing % as a double hex sequence interpreted to hex sequence
+!! input
+[[7%2525 Solution]]
+!! result
+<p>[[7%2525 Solution]]
+</p>
+!!end
 
 !! test
 Plain link to URL