From: Gabriel Wicke Date: Mon, 4 Jun 2012 09:25:57 +0000 (+0200) Subject: Add passing test for padleft and padright as substr X-Git-Tag: 1.31.0-rc.0~23259^2~17^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=da0dd987ed412181d2a35af14a907a7c797d23d9;p=lhc%2Fweb%2Fwiklou.git Add passing test for padleft and padright as substr This is a popular 'misuse' of the padleft/padright functions, which was not tested in the main parser tests so far. Change-Id: Icda02b34101c8c35b13c1e84d9f565867148d8d8 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index bcdbe8c1fe..d438174410 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -9361,6 +9361,17 @@ Language parser function

!! end +!!test +Padleft and padright as substr +!! input +{{padleft:|3|abcde}} +{{padright:|3|abcde}} +!! result +

abc +abc +

+!! end + TODO: more images more tables