From: Mark Holmquist Date: Wed, 10 Oct 2012 17:02:38 +0000 (-0700) Subject: Add three tests for categories mixed with templates. X-Git-Tag: 1.31.0-rc.0~22074 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=41d3072b8e56001fddbf1c3593d9f76cb35c5bc4;p=lhc%2Fweb%2Fwiklou.git Add three tests for categories mixed with templates. Apparently we didn't catch a regression in this area, so I've added a set of tests to make sure we don't miss it again. Change-Id: I3c4bfa15ce1182a6a697fb70e74489e06e1d9969 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e55cc83071..61cf508a57 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -5830,6 +5830,39 @@ pst [[Category:Foo (bar)|Foo]] !! end +!! test +Category with template +!! options +cat +pst +!! input +[[Category:{{echo|Foo}}]] +!! result +[[Category:{{echo|Foo}}]] +!! end + +!! test +Category with template in sort key +!! options +cat +pst +!! input +[[Category:Foo|{{echo|Bar}}]] +!! result +[[Category:Foo|{{echo|Bar}}]] +!! end + +!! test +Category with template in sort key and title +!! options +cat +pst +!! input +[[Category:{{echo|Foo}}|{{echo|Bar}}]] +!! result +[[Category:{{echo|Foo}}|{{echo|Bar}}]] +!! end + ### ### Inter-language links ###