Jump to content

Module talk:Political party/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

All 14 tests passed.

test_01_bad_values
Test Live Sandbox Expected
checkY {{#invoke:Political party|fetch|Aaaaaaaaaaa|color}} #F8F9FA #F8F9FA #F8F9FA
checkY {{#invoke:Political party|fetch|Aaaaaaaaaaa|shortname}} Aaaaaaaaaaa Aaaaaaaaaaa Aaaaaaaaaaa
checkY {{#invoke:Political party|fetch|aontú|color}} #F8F9FA #F8F9FA #F8F9FA
test_02_fallback_values
Test Live Sandbox Expected
checkY {{#invoke:Political party|fetch|A test no values|color}} <strong class="error">Value not in template. Please request that it be added.</strong> <strong class="error">Value not in template. Please request that it be added.</strong> <strong class="error">Value not in template. Please request that it be added.</strong>
checkY {{#invoke:Political party|fetch|Unitary Socialist Party (Italy, 1922)|shortname}} Unitary Socialist Party Unitary Socialist Party Unitary Socialist Party
checkY {{#invoke:Political party|fetch|[[Unitary Socialist Party (Italy, 1922)]]|shortname}} Unitary Socialist Party Unitary Socialist Party Unitary Socialist Party
checkY {{#invoke:Political party|fetch|[[Unitary Socialist Party (Italy, 1922)|Unitary Socialist Party Italy, 1922]]|shortname}} Unitary Socialist Party Unitary Socialist Party Unitary Socialist Party
checkY {{#invoke:Political party|fetch|Actual Equality|shortname}} Actual Equality Actual Equality Actual Equality
checkY {{#invoke:Political party|fetch|Actual Equality|abbrev}} Actual Equality Actual Equality Actual Equality
test_03_invalid_types
Test Live Sandbox Expected
checkY {{#invoke:Political party|fetch|}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkY {{#invoke:Political party|fetch||color}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkY {{#invoke:Political party|fetch||shortname}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkY {{#invoke:Political party|fetch||abbrev}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkY {{#invoke:Political party|fetch|Business and Professional Group}} <strong class="error">parameter 2 should be the output type.</strong> <strong class="error">parameter 2 should be the output type.</strong> <strong class="error">parameter 2 should be the output type.</strong>

Start a discussion about improving the Module:Political party/testcases page

Start a discussion