mediawiki-extensions-Parser.../tests/parser/stringFunctionTests.txt
Jayprakash12345 e6385dfb32 Update extensions to take advantage of parser test autodiscovery
Bug: T170037
Change-Id: I41d7ee671ca103097271379df83cf63d979ee709
2018-04-13 14:58:29 +00:00

33 lines
397 B
Plaintext

# @todo expand
!! functionhooks
len
!! endfunctionhooks
!! test
#len
!! input
{{#len:}}
{{#len:0}}
{{#len:test}}
!!result
<p>0
1
4
</p>
!! end
!! test
#urldecode
!! input
{{#urldecode:}}
{{#urldecode:foo%20bar}}
{{#urldecode:%D0%9C%D0%B5%D0%B4%D0%B8%D0%B0%D0%92%D0%B8%D0%BA%D0%B8}}
{{#urldecode: some unescaped string}}
!! result
<p>foo bar
МедиаВики
some unescaped string
</p>
!! end