Module:Sandbox/Naypta/Autolink/testcases

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

function p:test_links -- Test internal links self:preprocess_equals_preprocess_many('', 'Test link', {       {'User:Example'},        {'WP:Example'},        {'Example'},        {'Wikipedia:Example'},        {'Draft talk:Example'},    },{nowiki=1}) -- Test external links self:preprocess_equals_preprocess_many('', '[', ' Test EL]', {       {'https://example.com/'},        {'http://example.org/'},        {'ftp://example.net/'},        {'scp://example.info/'},    },{nowiki=1}) end

return p