Jump to content

Module:SortName/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bility (talk | contribs) at 21:24, 9 April 2013 (fix). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = require('Module:UnitTests')

function p:test_sortname()
    self:preprocess_equals('{{#invoke:Sandbox/Bility/SortName|sortname|Jim Tyler}}', 'Tyler, Jim')
end

return p