Module talk:String/testcases
6 of 35 tests failed.
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:String|clip|abcdefghijklmn|5}} | abcde... | Script error: The function "clip" does not exist. | |
{{#invoke:String|clip|s=abcdefghijklmn|max=5}} | abcde... | Script error: The function "clip" does not exist. | |
{{#invoke:String|clip|abcdefghijklmn|5|}} | abcde | Script error: The function "clip" does not exist. | |
{{#invoke:String|clip|s=abcdefghijklmn|max=5|trail=}} | abcde | Script error: The function "clip" does not exist. | |
{{#invoke:String|clip|abcdefghijklmn|5|... (more)}} | abcde... (more) | Script error: The function "clip" does not exist. | |
{{#invoke:String|clip|s=abcdefghijklmn|max=5|trail=... (more)}} | abcde... (more) | Script error: The function "clip" does not exist. |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:String|find|}} | 0 | 0 | |
{{#invoke:String|find|source=}} | 0 | 0 | |
{{#invoke:String|find|source=|target=}} | 0 | 0 | |
{{#invoke:String|find|source=|target=Bob}} | 0 | 0 | |
{{#invoke:String|find|Bob|Joe}} | 0 | 0 | |
{{#invoke:String|find|Bob|b}} | 3 | 3 | |
{{#invoke:String|find|Bob Joe|oe}} | 6 | 6 | |
{{#invoke:String|find|source= Bob |o}} | 2 | 2 | |
{{#invoke:String|find| Bob |o}} | 3 | 3 | |
{{#invoke:String|find|높지만 급격히|만}} | 3 | 3 | |
{{#invoke:String|find|source=BAAAB|target=%w|plain=false}} | 1 | 1 | |
{{#invoke:String|find|source=BAAAB|target=%w|start=3|plain=false}} | 3 | 3 | |
{{#invoke:String|find|source=BAAAB|target=(%w)%1|plain=false}} | 2 | 2 |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:String|len| foo }} | 5 | 5 | |
{{#invoke:String|len|s= foo }} | 3 | 3 | |
{{#invoke:String|len|}} | 0 | 0 | |
{{#invoke:String|len|s=}} | 0 | 0 | |
{{#invoke:String|len| }} | 3 | 3 | |
{{#invoke:String|len|最近の更新}} | 5 | 5 |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:String|match|dog (cat)|%((%a-)%)}} | cat | cat | |
{{#invoke:String|match|dog (cat) (canary) (fish)|%((%a-)%)||-1}} | fish | fish | |
{{#invoke:String|match|dog (cat) (canary) (fish)|%((%a-)%)||2}} | canary | canary | |
{{#invoke:String|match|dog (cat) (canary) (fish)|%((%a-)%)|6|1}} | canary | canary | |
{{#invoke:String|match|dog (cat) (canary) (fish)|%((%a-)%)|6|2}} | fish | fish | |
{{#invoke:String|match|dog (cat)|%((%a-)%)||2|no_category=true}} | String Module Error: Match not found | String Module Error: Match not found | |
{{#invoke:String|match|dog (cat)|%((%a-)%)||2|ignore_errors=true}} |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:String|replace|1.1.1.1|.|/}} | 1/1/1/1 | 1/1/1/1 | |
{{#invoke:String|replace|alpha (beta)| (| gamma (}} | alpha gamma (beta) | alpha gamma (beta) | |
{{#invoke:String|replace|Dog (cat)|%s%(.*%)||plain=false}} | Dog | Dog |
Start a discussion about Module:String/testcases
Talk pages are where people discuss how to make content on Meta the best that it can be. You can use this page to start a discussion with others about how to improve Module:String/testcases.