Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
Line 199:
{| class="wikitable"
|-
! colspan="5" style="padding-left:3em; text-align:left;" | {{para|yes|Yes, a hit}}<br/>{{para|no|Not found}}
|-
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foo}}
| {{#invoke:Str find word|main |explain=true |source=alpha, foo, lima|word=foo|yes=Yes, a hit|no=No, not found}}
| {{aye}}
|-
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foobar}}
| {{#invoke:Str find word|main |explain=true |source=alpha, foo, lima|word=foobar|yes=Yes, a hit|no=No, not found}}
| {{nay}}
|}
 
===Edge cases: (blank input,) ===
:WilWill return ''False'':
{| class="wikitable"
*
|-
! colspan="5" style="padding-left:3em; text-align:left;" | {{para|booleans|true}}
|-
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foo}}
| {{#invoke:Str find word|main |explain=true |source=alpha, foo, lima|word=foo|yes=Yes, hit|no=No, not found}}
| {{aye}}
|-
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foobar}}
| {{#invoke:Str find word|main |explain=true |source=alpha, foo, lima|word=foobar|yes=Yes, hit|no=No, not found}}
| {{nay}}
|}
 
==Errors and analysis==