Fara í innihald

Module:Citation/CS1/testcases

Úr Wikipediu, frjálsa alfræðiritinu

Hægt er að búa til leiðbeiningar fyrir þessa skriftu á Module:Citation/CS1/testcases/doc

-- Unit tests for [[Module:Citation/CS1]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
function p:test_cite()
    self:preprocess_equals_preprocess_many('{{Cite web|', '}}', 
            '{{Cite web/sandbox|', '}}', {
        {'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=2018-06-15 |archive-date=2019-12-16 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live ', 
        	'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=2018-06-15 |archive-date=2019-12-16 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live '},
        {'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15 June 2018 |archive-date=December 16, 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live ', 
        	'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15 June 2018 |archive-date=December 16, 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live '},
        {'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15 June |archive-date=December 16 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live ', 
        	'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15 June |archive-date=December 16 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live '},
        {'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=2018-06-15 |archive-date=December 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live ', 
        	'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=2018-06-15 |archive-date=December 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live '},
        {'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15. September 2019 |archive-date=15 September 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live ', 
        	'url=http://www.theplantlist.org/tpl1.1/record/kew-295199 |title=The Plant List |access-date=15. September 2019 |archive-date=15 September 2019 |archive-url=https://web.archive.org/web/20191216003324/http://www.theplantlist.org/tpl1.1/record/kew-295199 |url-status=live '},
    })
end

return p