Module talk:Taxonavigation/sandbox/testcases

All tests passed.

Test: articleExists
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_articleExists|Cinnamomum camphora}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_articleExists|Cinnamomum}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_articleExists|DoesNotExist}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_articleExists|}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_articleExists}} false false
Test: calcItalicTitle
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|Bombus (disamb)}} Module_talk:''Bombus'' <small>(disamb)</small> Module_talk:''Bombus'' <small>(disamb)</small>
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|Bombus (Psithyrus)}} Module_talk:''Bombus'' <small>(Psithyrus)</small> Module_talk:''Bombus'' <small>(Psithyrus)</small>
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|genus (subgenus) species}} Module_talk:''genus (subgenus) species'' Module_talk:''genus (subgenus) species''
Test: categoryExists
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Cinnamomum camphora}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Cinnamomum}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|DoesNotExist}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:Cinnamomum camphora}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:Cinnamomum}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:DoesNotExist}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists|}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_categoryExists}} false false
Test: doesSingularLatinRankExist
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|genus}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|species}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|(unranked)}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|???}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|⇒}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|unranked}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|whatever}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|impossiblevalue}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist}} false false
Test: findCurrentPageTaxonRank
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum camphora}} Species Species
✓[OK] {{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum}} Genus Genus
✓[OK] {{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Lauraceae}} Familia Familia
✓[OK] {{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=NotPresent}}
Test: rankNeedsItalic
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|genus}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|species}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|familia}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|subfamilia}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|ordo}} false false
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|whatever}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|}} true true
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic}} true true
Test: serializeCurrentParameters
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|serializeCurrentParameters|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum camphora}} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Species","genus":"Cinnamomum"} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Species","genus":"Cinnamomum"}
✓[OK] {{#invoke:Taxonavigation/sandbox|serializeCurrentParameters|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum}} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Genus","genus":"Cinnamomum"} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Genus","genus":"Cinnamomum"}
✓[OK] {{#invoke:Taxonavigation/sandbox|serializeCurrentParameters|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Lauraceae}} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Familia","genus":"Cinnamomum"} {"ordo":"Laurales","familia":"Lauraceae","species":"Cinnamomum camphora","CurrentPageTaxonRank":"Familia","genus":"Cinnamomum"}
✓[OK] {{#invoke:Taxonavigation/sandbox|serializeCurrentParameters|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=NotPresent}} {"species":"Cinnamomum camphora","ordo":"Laurales","familia":"Lauraceae","genus":"Cinnamomum"} {"species":"Cinnamomum camphora","ordo":"Laurales","familia":"Lauraceae","genus":"Cinnamomum"}
Test: stringTrim
Text Expected Actual
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_stringTrim|string}} string string
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_stringTrim| string }} string string
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_stringTrim|}}
✓[OK] {{#invoke:Taxonavigation/sandbox|testcase_stringTrim}} nil nil

Start a discussion about Module:Taxonavigation/sandbox/testcases

Start a discussion
Return to "Taxonavigation/sandbox/testcases" page.