Module:UnitTests demo/testcases

From OpenStreetMap Wiki
Jump to navigation Jump to search
-- Unit tests for [[Module:UnitTests demo]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_hello()
    self:preprocess_equals('{{#invoke:UnitTests demo | hello}}', 'Hello, world!')
end

return p