Module:Vital article/testcases
Appearance
![]() | This is the test cases page for the module Module:Vital article. Results of the test cases. |
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')
-- Example unit test.
function p:test()
self:preprocess_equals(
'{{#invoke:Vital article|link|page=Philosophy}}',
'[[Philosophy]] [[File:Círculos Concéntricos.svg|11px]] [[Wikipedia:Vital articles/Level/1#Level 1 vital articles (10 articles)|1]]')
self:preprocess_equals(
'{{#invoke:Vital article|link|page=philosophy}}',
'[[philosophy]]')
self:preprocess_equals(
'{{#invoke:Vital article|link|page=Calamotropha punctivenellus}}',
'[[Calamotropha punctivenellus]]')
end
return p