-- Unit tests for . Click talk page to run tests.local p = require('Module:UnitTests') function p:test_url local cases = text = self.frame:expandTemplate for _, case in ipairs(cases) do self:preprocess_equals(case, text) end cases = for _, case in ipairs(cases) do self:preprocess_equals('', '
' .. case[2] .. '',) endself:preprocess_equals('', 'example.com',) self:preprocess_equals('', 'http://example.com/foo',)end
return p