Module:DartsRankings/testcases

local p = require('Module:UnitTests')

function p:test_playerLink self:preprocess_equals_sandbox_many('{{#invoke:DartsRankings', 'playerLink', {       {'PDC Rankings|Michael van Gerwen|flag = ', '    Michael van Gerwen   ' },    	{'PDC Rankings|Michäël VaN GeRWÈn|flag = ', '    Michael van Gerwen   ' },    	{'PDC Rankings|Joe Bloggs|flag = ', '  Joe Bloggs'},        {'PDC Rankings|Michael van Gerwen|flag = UK', '    Michael van Gerwen   '}    }) end

return p