Module talk:String/toetsgevalle

in Wikipedia, die vrye ensiklopedie
Jump to navigation Jump to search

Alle toetse geslaag.

test_find:

Teks Verwag Werklik
Yes check.svg
{{#invoke:String/Sandput|find|}} 0 0
Yes check.svg
{{#invoke:String/Sandput|find|source=}} 0 0
Yes check.svg
{{#invoke:String/Sandput|find|source=|target=}} 0 0
Yes check.svg
{{#invoke:String/Sandput|find|source=|target=Bob}} 0 0
Yes check.svg
{{#invoke:String/Sandput|find|Bob|Joe}} 0 0
Yes check.svg
{{#invoke:String/Sandput|find|Bob|b}} 3 3
Yes check.svg
{{#invoke:String/Sandput|find|Bob Joe|oe}} 6 6
Yes check.svg
{{#invoke:String/Sandput|find|source= Bob |o}} 2 2
Yes check.svg
{{#invoke:String/Sandput|find| Bob |o}} 3 3
Yes check.svg
{{#invoke:String/Sandput|find|높지만 급격히|만}} 3 3
Yes check.svg
{{#invoke:String/Sandput|find|source=BAAAB|target=%w|plain=false}} 1 1
Yes check.svg
{{#invoke:String/Sandput|find|source=BAAAB|target=%w|start=3|plain=false}} 3 3
Yes check.svg
{{#invoke:String/Sandput|find|source=BAAAB|target=(%w)%1|plain=false}} 2 2

test_len:

Teks Verwag Werklik
Yes check.svg
{{#invoke:String/Sandput|len| foo }} 5 5
Yes check.svg
{{#invoke:String/Sandput|len|s= foo }} 3 3
Yes check.svg
{{#invoke:String/Sandput|len|}} 0 0
Yes check.svg
{{#invoke:String/Sandput|len|s=}} 0 0
Yes check.svg
{{#invoke:String/Sandput|len| }} 3 3
Yes check.svg
{{#invoke:String/Sandput|len|最近の更新}} 5 5

test_match:

Teks Verwag Werklik
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat)|%((%a-)%)}} cat cat
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat) (canary) (fish)|%((%a-)%)||-1}} fish fish
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat) (canary) (fish)|%((%a-)%)||2}} canary canary
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat) (canary) (fish)|%((%a-)%)|6|1}} canary canary
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat) (canary) (fish)|%((%a-)%)|6|2}} fish fish
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat)|%((%a-)%)||2|no_category=true}} String Module Error: Match not found String Module Error: Match not found
Yes check.svg
{{#invoke:String/Sandput|match|dog (cat)|%((%a-)%)||2|ignore_errors=true}}

test_rep:

Teks Verwag Werklik
Yes check.svg
{{#invoke:String/Sandput|rep|abc|1}} abc abc
Yes check.svg
{{#invoke:String/Sandput|rep|a b|7}} a ba ba ba ba ba ba b a ba ba ba ba ba ba b
Yes check.svg
{{#invoke:String/Sandput|rep|bla|glug|no_category=true}} String Module Error: function rep expects a number as second parameter, received "glug" String Module Error: function rep expects a number as second parameter, received "glug"
Yes check.svg
{{#invoke:String/Sandput|rep|bla|glug|ignore_errors=true}}

test_replace:

Teks Verwag Werklik
Yes check.svg
{{#invoke:String/Sandput|vervang|1.1.1.1|.|/}} 1/1/1/1 1/1/1/1
Yes check.svg
{{#invoke:String/Sandput|vervang|alpha (beta)| (| gamma (}} alpha gamma (beta) alpha gamma (beta)
Yes check.svg
{{#invoke:String/Sandput|vervang|Dog (cat)|%s%(.*%)||gewoon=false}} Dog Dog