Add passing test for padleft and padright as substr
authorGabriel Wicke <gwicke@wikimedia.org>
Mon, 4 Jun 2012 09:25:57 +0000 (11:25 +0200)
committerGabriel Wicke <gwicke@wikimedia.org>
Mon, 4 Jun 2012 09:29:59 +0000 (11:29 +0200)
This is a popular 'misuse' of the padleft/padright functions, which was not
tested in the main parser tests so far.

Change-Id: Icda02b34101c8c35b13c1e84d9f565867148d8d8

tests/parser/parserTests.txt

index bcdbe8c..d438174 100644 (file)
@@ -9361,6 +9361,17 @@ Language parser function
 </p>
 !! end
 
+!!test
+Padleft and padright as substr
+!! input
+{{padleft:|3|abcde}}
+{{padright:|3|abcde}}
+!! result
+<p>abc
+abc
+</p>
+!! end
+
 TODO:
 more images
 more tables