From 41d3072b8e56001fddbf1c3593d9f76cb35c5bc4 Mon Sep 17 00:00:00 2001 From: Mark Holmquist Date: Wed, 10 Oct 2012 10:02:38 -0700 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 ### -- 2.20.1