FANDOM


Testharness report for String.

This is the unit test report for String, which produces integrity checks and output debugging for String.

Purge
Test suite statusFailed
Scribunto test cases32/35
Code coverage10/14
Unit test report for String.
  • Test members missing: posstr_findsubsublength
  • Test cases failing: lenfind
  • Execution time: 1.4ms

Scribunto test cases

str.main

1/1
StatusCodeExpectedActualDiffers at
Passing
{{#invoke:string|main}}
Error
you must specify a function to call
Error
you must specify a function to call

str.len

4/6
StatusCodeExpectedActualDiffers at
Failing
{{#invoke:string|len| foo }}
531
Passing
{{#invoke:string|len|s= foo }}
33
Passing
{{#invoke:string|len|}}
00
Passing
{{#invoke:string|len|s=}}
00
Failing
{{#invoke:string|len|   }}
301
Passing
{{#invoke:string|len|最近の更新}}
55

str.replace

3/3
StatusCodeExpectedActualDiffers at
Passing
{{#invoke:string|replace|1.1.1.1|.|/}}
1/1/1/11/1/1/1
Passing
{{#invoke:string|replace|alpha (beta)| (| gamma (}}
alpha gamma (beta)alpha gamma (beta)
Passing
{{#invoke:string|replace|Dog (cat)|%s%(.*%)||plain=false}}
DogDog

str.find

12/13
StatusCodeExpectedActualDiffers at
Passing
{{#invoke:string|find|}}
00
Passing
{{#invoke:string|find|source=}}
00
Passing
{{#invoke:string|find|source=|target=}}
00
Passing
{{#invoke:string|find|source=|target=Bob}}
00
Passing
{{#invoke:string|find|Bob|Joe}}
00
Passing
{{#invoke:string|find|Bob|b}}
33
Passing
{{#invoke:string|find|Bob Joe|oe}}
66
Passing
{{#invoke:string|find|source= Bob |o}}
22
Failing
{{#invoke:string|find| Bob |o}}
321
Passing
{{#invoke:string|find|높지만 급격히|만}}
33
Passing
{{#invoke:string|find|source=BAAAB|target=%w|plain=false}}
11
Passing
{{#invoke:string|find|source=BAAAB|target=%w|start=3|plain=false}}
33
Passing
{{#invoke:string|find|source=BAAAB|target=(%w)%1|plain=false}}
22

str.rep

5/5
StatusCodeExpectedActualDiffers at
Passing
{{#invoke:string|rep|abc|1}}
abcabc
Passing
{{#invoke:string|rep|a b|7}}
a ba ba ba ba ba ba ba ba ba ba ba ba ba b
Passing
{{#invoke:string|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"
Passing
{{#invoke:string|rep|bla|glug|ignore_errors=true}}
Passing
{{#invoke:string|rep|àèò|3}}
àèòàèòàèòàèòàèòàèò

str.match

7/7
StatusCodeExpectedActualDiffers at
Passing
{{#invoke:string|match|dog (cat)|%((%a-)%)}}
catcat
Passing
{{#invoke:string|match|dog (cat) (canary) (fish)|%((%a-)%)||-1}}
fishfish
Passing
{{#invoke:string|match|dog (cat) (canary) (fish)|%((%a-)%)||2}}
canarycanary
Passing
{{#invoke:string|match|dog (cat) (canary) (fish)|%((%a-)%)|6|1}}
canarycanary
Passing
{{#invoke:string|match|dog (cat) (canary) (fish)|%((%a-)%)|6|2}}
fishfish
Passing
{{#invoke:string|match|dog (cat)|%((%a-)%)||2|no_category=true}}
String Module Error: Match not foundString Module Error: Match not found
Passing
{{#invoke:string|match|dog (cat)|%((%a-)%)||2|ignore_errors=true}}
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+