dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1267e41
)
Add passing test for padleft and padright as substr
author
Gabriel Wicke
<gwicke@wikimedia.org>
Mon, 4 Jun 2012 09:25:57 +0000
(11:25 +0200)
committer
Gabriel 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
patch
|
blob
|
history
diff --git
a/tests/parser/parserTests.txt
b/tests/parser/parserTests.txt
index
bcdbe8c
..
d438174
100644
(file)
--- a/
tests/parser/parserTests.txt
+++ b/
tests/parser/parserTests.txt
@@
-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