Module talk:Biology/sandbox/testcases

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

All tests passed.

Test: error_incorrectBiologyTemplateUsageNoLink
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsageNoLink|Sortkey|errorToDisplay|templateNameForDoc|true}} <span class="error">Error: errorToDisplay</span> [[Category:Pages with incorrect biology template usage|Sortkey]] <span class="error">Error: errorToDisplay</span> [[Category:Pages with incorrect biology template usage|Sortkey]]
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsageNoLink|Sortkey|errorToDisplay|ignoreNamespaceOrNil=true}} <span class="error">Error: errorToDisplay</span> [[Category:Pages with incorrect biology template usage|Sortkey]] <span class="error">Error: errorToDisplay</span> [[Category:Pages with incorrect biology template usage|Sortkey]]
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsageNoLink|Sortkey|errorToDisplay|templateNameForDoc}}
Test: error_pageNameCorrespondToSpeciesOrInfraspecies
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsage|Sortkey|errorToDisplay|templateNameForDoc|true}} [[Template:templateNameForDoc|<span class="error">Error: errorToDisplay</span>]] [[Category:Pages with incorrect biology template usage|Sortkey]] [[Template:templateNameForDoc|<span class="error">Error: errorToDisplay</span>]] [[Category:Pages with incorrect biology template usage|Sortkey]]
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsage|Sortkey|errorToDisplay|ignoreNamespaceOrNil=true}} [[:Category:Pages with incorrect biology template usage|<span class="error">Error: errorToDisplay</span>]] [[Category:Pages with incorrect biology template usage|Sortkey]] [[:Category:Pages with incorrect biology template usage|<span class="error">Error: errorToDisplay</span>]] [[Category:Pages with incorrect biology template usage|Sortkey]]
✓[OK] {{#invoke:Biology/sandbox|testcase_incorrectBiologyTemplateUsage|Sortkey|errorToDisplay|templateNameForDoc}}
Test: namespace_getCurrentNamespace
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|getCurrentNamespace}} module_talk module_talk
Test: namespace_isCurrentNamespaceACategory
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|isCurrentNamespaceACategory}} false false
Test: namespace_isCurrentNamespaceACategoryOrAGallery
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|isCurrentNamespaceACategoryOrAGallery}} false false
Test: namespace_isCurrentNamespaceACategoryOrAGalleryOrATemplate
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|isCurrentNamespaceACategoryOrAGalleryOrATemplate}} false false
Test: namespace_pageNameCorrespondToSpeciesOrInfraspecies
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Category:Pantera tigris}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Pantera tigris subsp. tigris}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Category:Phyllosasa}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Category:× Phyllosasa}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|× Phyllosasa}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Rosa nothosect. Cinnastylae}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_pageNameCorrespondToSpeciesOrInfraspecies|Rosa subg. Cinnastylae}} false false
Test: namespace_suppressCategory
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressCategory|whatever}} whatever whatever
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressCategory|Category:whatever}} whatever whatever
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressCategory|category:whatever}} whatever whatever
Test: namespace_suppressDisambiguation
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressDisambiguation|Platanthera (genus)}} Platanthera Platanthera
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressDisambiguation|Platanthera}} Platanthera Platanthera
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressDisambiguation|Platanthera (}} Platanthera ( Platanthera (
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressDisambiguation|Platanthera(genus)}} Platanthera Platanthera
✓[OK] {{#invoke:Biology/sandbox|testcase_suppressDisambiguation|(Platanthera)}}
Test: string_contains
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=longer|small=long}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=muchlonger|small=long}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=muchlong|small=long}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=long|small=long}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=long|small=muchlonger}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=long|small=small}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|small=small}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_contains|long=long}} false false
Test: string_endsWith
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=t}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=st}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=est}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=to}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=test}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test|end=}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|string=test}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith|end=}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_endsWith}} false false
Test: string_isNilOrEmpty
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isNilOrEmpty|whatever}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isNilOrEmpty|}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isNilOrEmpty}} true true
Test: string_isTrue
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|whatever}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|0}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|no}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|nO}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|false}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|fAlSe}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_isTrue|}} false false
Test: string_startsWith
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|string=test|start=te}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|string=test|start=ta}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|string=test|start=test}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|string=test|start=}} true true
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|string=test}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith|start=test}} false false
✓[OK] {{#invoke:Biology/sandbox|testcase_string_startsWith}} false false
Test: string_trimOrNullify
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_trimOrNullify|whatever}} whatever whatever
✓[OK] {{#invoke:Biology/sandbox|testcase_string_trimOrNullify|a}} a a
✓[OK] {{#invoke:Biology/sandbox|testcase_string_trimOrNullify|}} nil nil
✓[OK] {{#invoke:Biology/sandbox|testcase_string_trimOrNullify}} nil nil
Test: string_upperFirst
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirst|tOtO}} TOtO TOtO
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirst|TOtO}} TOtO TOtO
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirst|}}
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirst}} nil nil
Test: string_upperFirstLowerOthers
Text Expected Actual
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirstLowerOthers|tOTO}} Toto Toto
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirstLowerOthers|tOtO}} Toto Toto
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirstLowerOthers|t}} T T
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirstLowerOthers|}}
✓[OK] {{#invoke:Biology/sandbox|testcase_string_upperFirstLowerOthers}} nil nil