Module:Jcttop/core/testcases

From Wikipedia, the free encyclopedia
-- Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_indep_city_special()
    self:preprocess_equals('{{#invoke:Jcttop/core | jcttop | sub1name=County | unit=mi | unit2=km }}\n|}', '<table class="plainrowheaders wikitable">\n<tr><th scope="col">County</th><th scope="col">Location</th><th scope="col"><abbr title="Miles">mi</abbr></th><th scope="col"><abbr title="Kilometers">km</abbr></th><th scope="col">Destinations</th><th scope="col">Notes</th></tr></table>')
    self:preprocess_equals('{{#invoke:Jcttop/core/sandbox | jcttop | sub1name=County | unit=mi | unit2=km }}\n|}', '<table class="plainrowheaders wikitable">\n<tr><th scope="col">County</th><th scope="col">Location</th><th scope="col"><abbr title="Miles">mi</abbr></th><th scope="col"><abbr title="Kilometers">km</abbr></th><th scope="col">Destinations</th><th scope="col">Notes</th></tr></table>')
end

return p