Module:Infobox sort/testcases

-- Unit tests for Module:Infobox sort. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_asc self:preprocess_equals('', '3% Bar 4% Carrot 8% Foo') end

function p:test_desc self:preprocess_equals('', '8% Carrot 3% Bar 2% Foo') end

function p:test_desc_missing_param self:preprocess_equals('', '8% Carrot 3% Bar') end

return p