From baa494f7811a392ca47ffdb643d9cf3947d758ca Mon Sep 17 00:00:00 2001
From: Brion Vibber
Date: Sun, 17 Oct 2004 07:33:03 +0000
Subject: [PATCH] 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)
---
maintenance/parserTests.txt | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
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
--
2.20.1