Module talk:Taxonavigation/sandbox/testcases
All tests passed.
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_articleExists|Cinnamomum camphora}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_articleExists|Cinnamomum}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_articleExists|DoesNotExist}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_articleExists|}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_articleExists}} | false | false |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|Bombus (disamb)}} | Module_talk:''Bombus'' <small>(disamb)</small> | Module_talk:''Bombus'' <small>(disamb)</small> | |
{{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|Bombus (Psithyrus)}} | Module_talk:''Bombus'' <small>(Psithyrus)</small> | Module_talk:''Bombus'' <small>(Psithyrus)</small> | |
{{#invoke:Taxonavigation/sandbox|testcase_calcItalicTitle|genus (subgenus) species}} | Module_talk:''genus (subgenus) species'' | Module_talk:''genus (subgenus) species'' |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Cinnamomum camphora}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Cinnamomum}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|DoesNotExist}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:Cinnamomum camphora}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:Cinnamomum}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|Category:DoesNotExist}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists|}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_categoryExists}} | false | false |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|genus}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|species}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|(unranked)}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|???}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|⇒}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|unranked}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|whatever}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|impossiblevalue}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist|}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_doesSingularLatinRankExist}} | false | false |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum camphora}} | Species | Species | |
{{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Cinnamomum}} | Genus | Genus | |
{{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=Lauraceae}} | Familia | Familia | |
{{#invoke:Taxonavigation/sandbox|findCurrentPageTaxonRank|Ordo|Laurales|Familia|Lauraceae|Genus|Cinnamomum|Species|Cinnamomum camphora|pagenameForDebug=NotPresent}} |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|genus}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|species}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|familia}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|subfamilia}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|ordo}} | false | false | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|whatever}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic|}} | true | true | |
{{#invoke:Taxonavigation/sandbox|testcase_rankNeedsItalic}} | true | true |
Text | Expected | Actual | |
---|---|---|---|
{{#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"} | |
{{#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"} | |
{{#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"} | |
{{#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"} |
Text | Expected | Actual | |
---|---|---|---|
{{#invoke:Taxonavigation/sandbox|testcase_stringTrim|string}} | string | string | |
{{#invoke:Taxonavigation/sandbox|testcase_stringTrim| string }} | string | string | |
{{#invoke:Taxonavigation/sandbox|testcase_stringTrim|}} | |||
{{#invoke:Taxonavigation/sandbox|testcase_stringTrim}} | nil | nil |
Start a discussion about Module:Taxonavigation/sandbox/testcases
Talk pages are where people discuss how to make content on Wikimedia Commons the best that it can be. You can use this page to start a discussion with others about how to improve Module:Taxonavigation/sandbox/testcases.