Module talk:Yesno: Difference between revisions
Appearance
+Test cases |
Template output does not match its own documentation. Blah. |
||
| Line 2: | Line 2: | ||
|+ Test Cases (via [[Template:Yesno/doc]]) | |+ Test Cases (via [[Template:Yesno/doc]]) | ||
|- | |- | ||
! | ! Module output | ||
! Template output | |||
! Expected | ! Expected | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|yes}} | | {{#invoke:Yesno|yesno|yes}} | ||
| {{yesno|yes}} | |||
| yes | | yes | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|YeS}} | | {{#invoke:Yesno|yesno|YeS}} | ||
| {{yesno|YeS}} | |||
| yes | | yes | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|Y}} | | {{#invoke:Yesno|yesno|Y}} | ||
| {{yesno|Y}} | |||
| yes | | yes | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|y}} | | {{#invoke:Yesno|yesno|y}} | ||
| {{yesno|y}} | |||
| yes | | yes | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|no}} | | {{#invoke:Yesno|yesno|no}} | ||
| | | {{yesno|no}} | ||
| | |||
|- | |- | ||
| {{#invoke:Yesno|yesno|}} | | {{#invoke:Yesno|yesno|}} | ||
| | | {{yesno|}} | ||
| | |||
|- | |- | ||
| {{#invoke:Yesno|yesno}} | | {{#invoke:Yesno|yesno}} | ||
| | | {{yesno}} | ||
| | |||
|- | |- | ||
| {{#invoke:Yesno|yesno|¬}} | | {{#invoke:Yesno|yesno|¬}} | ||
| | | {{yesno|¬}} | ||
| | |||
|- | |- | ||
| {{#invoke:Yesno|yesno|purplemonkeydishwasher}} | | {{#invoke:Yesno|yesno|purplemonkeydishwasher}} | ||
| {{yesno|purplemonkeydishwasher}} | |||
| yes | | yes | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|yes|yes=bacon}} | | {{#invoke:Yesno|yesno|yes|yes=bacon}} | ||
| {{yesno|yes|yes=bacon}} | |||
| bacon | | bacon | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|no|no=ham}} | | {{#invoke:Yesno|yesno|no|no=ham}} | ||
| {{yesno|no|no=ham}} | |||
| ham | | ham | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|blank= eggs}} | | {{#invoke:Yesno|yesno|blank= eggs}} | ||
| {{yesno|blank= eggs}} | |||
| eggs | | eggs | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|no=ham}} | | {{#invoke:Yesno|yesno|no=ham}} | ||
| {{yesno|no=ham}} | |||
| ham | | ham | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|blank= eggs|no=ham}} | | {{#invoke:Yesno|yesno|blank= eggs|no=ham}} | ||
| {{yesno|blank= eggs|no=ham}} | |||
| eggs | | eggs | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|¬|¬=sausage}} | | {{#invoke:Yesno|yesno|¬|¬=sausage}} | ||
| {{yesno|¬|¬=sausage}} | |||
| sausage | | sausage | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|purplemonkeydishwasher|def=cup-of-tea}} | | {{#invoke:Yesno|yesno|purplemonkeydishwasher|def=cup-of-tea}} | ||
| {{yesno|purplemonkeydishwasher|def=cup-of-tea}} | |||
| cup-of-tea | | cup-of-tea | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|purplemonkeydishwasher|yes=bacon}} | | {{#invoke:Yesno|yesno|purplemonkeydishwasher|yes=bacon}} | ||
| {{yesno|purplemonkeydishwasher|yes=bacon}} | |||
| bacon | | bacon | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}} | | {{#invoke:Yesno|yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}} | ||
| {{yesno|purplemonkeydishwasher|def=cup-of-tea|yes=bacon}} | |||
| cup-of-tea | | cup-of-tea | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|yes|yes=no|no=yes}} | | {{#invoke:Yesno|yesno|yes|yes=no|no=yes}} | ||
| {{yesno|yes|yes=no|no=yes}} | |||
| no | | no | ||
|- | |- | ||
| {{#invoke:Yesno|yesno|no|yes=no|no=yes}} | | {{#invoke:Yesno|yesno|no|yes=no|no=yes}} | ||
| {{yesno|no|yes=no|no=yes}} | |||
| yes | | yes | ||
|} | |} | ||
--[[User:Ori.livneh|Ori.livneh]] ([[User talk:Ori.livneh|talk]]) 10:46, 28 February 2013 (UTC) | --[[User:Ori.livneh|Ori.livneh]] ([[User talk:Ori.livneh|talk]]) 10:46, 28 February 2013 (UTC) | ||
Revision as of 11:23, 28 February 2013
| Module output | Template output | Expected |
|---|---|---|
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | ||
| Script error: The module returned a function value. It is supposed to return an export table. | ||
| Script error: The module returned a function value. It is supposed to return an export table. | ||
| Script error: The module returned a function value. It is supposed to return an export table. | ||
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | bacon | bacon |
| Script error: The module returned a function value. It is supposed to return an export table. | ham | ham |
| Script error: The module returned a function value. It is supposed to return an export table. | eggs | |
| Script error: The module returned a function value. It is supposed to return an export table. | ham | |
| Script error: The module returned a function value. It is supposed to return an export table. | eggs | |
| Script error: The module returned a function value. It is supposed to return an export table. | sausage | sausage |
| Script error: The module returned a function value. It is supposed to return an export table. | cup-of-tea | cup-of-tea |
| Script error: The module returned a function value. It is supposed to return an export table. | bacon | bacon |
| Script error: The module returned a function value. It is supposed to return an export table. | cup-of-tea | cup-of-tea |
| Script error: The module returned a function value. It is supposed to return an export table. | no | no |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
--Ori.livneh (talk) 10:46, 28 February 2013 (UTC)