From da0dd987ed412181d2a35af14a907a7c797d23d9 Mon Sep 17 00:00:00 2001
From: Gabriel Wicke
Date: Mon, 4 Jun 2012 11:25:57 +0200
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
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
--
2.20.1