Add three tests for categories mixed with templates.
authorMark Holmquist <mtraceur@member.fsf.org>
Wed, 10 Oct 2012 17:02:38 +0000 (10:02 -0700)
committerMark Holmquist <mtraceur@member.fsf.org>
Wed, 10 Oct 2012 17:02:38 +0000 (10:02 -0700)
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

index e55cc83..61cf508 100644 (file)
@@ -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
 ###