Module:Find country/testcases
Appearance
| This is the test cases page for the module Module:Find country. Results of the test cases. |
-- Unit tests for [[Module:Find country]]. Click talk page to run tests.
local p = require('Module:UnitTests')
-- Example unit test.
-- function p:test_main()
-- self:preprocess_equals('{{#invoke:Find country |main|"France is lovely at this time of year "}}')
-- end
function p:test_main()
self:preprocess_equals_many('{{#invoke:Find country|main|string=', '}}', {
{"Find", ""};
{"France is lovely at this time of year ", "France"};
{"It is found in Zimbabwe and South Africa.", "South Africa"};
{"Bošnjane is a village in the municipality of Varvarin, Serbia. ", "Serbia"};
{"Find country/testcases", "Find country/testcases"};
{"The Jamaica Rural Police Force (JRPF), also", "Jamaica"};
})
self:preprocess_equals('{{#invoke:Find country |main|}}', 'Find country/testcases')
end
return p