Module:SortName/testcases
Appearance
![]() | This is the test cases page for the module Module:SortName. Results of the test cases. |
local p = require('Module:UnitTests')
function p:test_sortname()
self:preprocess_equals_many('{{#invoke:Sandbox/Bility/SortName|sortname|Jim Tyler}}', '}}', {
{ 'Jim Excelsior Tyler', 'Tyler, Jim Excelsior' },
{ 'Jim', 'Jim' },
{ 'List of people named Jim', 'People named Jim' },
{ 'Jim Tyler (musician)', 'Tyler, Jim' },
{ 'Jim Tyler, man and myth', 'Tyler, Jim' },
{ 'Jim Tyler of Clan Tyler', 'Tyler, Jim' },
{ 'Jim von Tyler', 'von Tyler, Jim' },
{ 'Jim Von Tyler', 'Von Tyler, Jim' }
})
end
return p