Module:Urltowiki/testcases
Appearance
![]() | This is the test cases page for the module Module:Urltowiki. Results of the test cases. |
-- Unit tests for [[Module:UrlToWiki]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_simple()
self:preprocess_equals_many('{{#invoke:UrlToWiki|urlToWiki|', '}}', {
{'https://en.wikipedia.org/wiki/Banana', '[[Banana]]'},
{'https://en.wikipedia.org/wiki/English_language', '[[English language]]'},
{'https://en.wikipedia.org/wiki/Module:UnitTests', '[[Module:UnitTests]]'},
{'https://en.wikipedia.org/wiki/Wikipedia_talk:Articles_for_deletion', '[[Wikipedia talk:Articles for deletion]]'},
})
end
return p