From: Brion Vibber
Date: Sat, 28 Jan 2006 21:51:01 +0000 (+0000)
Subject: Parser test case for bug 4783
X-Git-Tag: 1.6.0~404
X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=300259fd730bf99c42469052030dfa7501839df4;p=lhc%2Fweb%2Fwiklou.git
Parser test case for bug 4783
---
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index cd0e6bee41..7eb963547e 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -1562,6 +1562,59 @@ Magic Word: {{SITENAME}}
!! end
+!! test
+Namespace 1 {{ns:1}}
+!! input
+{{ns:1}}
+!! result
+Talk
+
+!! end
+
+!! test
+Namespace 1 {{ns:01}}
+!! input
+{{ns:01}}
+!! result
+Talk
+
+!! end
+
+!! test
+Namespace 0 {{ns:0}} (bug 4783)
+!! input
+{{ns:0}}
+!! result
+
+!! end
+
+!! test
+Namespace 0 {{ns:00}} (bug 4783)
+!! input
+{{ns:00}}
+!! result
+
+!! end
+
+!! test
+Namespace -1 {{ns:-1}}
+!! input
+{{ns:-1}}
+!! result
+Special
+
+!! end
+
+!! test
+Namespace Project {{ns:User}}
+!! input
+{{ns:User}}
+!! result
+User
+
+!! end
+
+
###
### Magic links
###