Content deleted Content added
Kammerer55 (talk | contribs) No edit summary |
Kammerer55 (talk | contribs) No edit summary |
||
Line 10:
'[[Calamotropha punctivenellus]]'},
{ 'non-article', '[[non-article]]' }
}
local test_level_cases = {
['Philosophy'] = 1,
['Astronomy'] = 2,
['Homer'] = 3,
['Thallophyca'] = 0,
['non-article'] = 0,
}
Line 33 ⟶ 41:
'{{#invoke:Vital article|link|page=' .. page .. '}}',
'{{#invoke:Vital article/sandbox|link|page=' .. page .. '}}')
end
end
function p:test_levels()
for k, v in pairs(test_level_cases) do
self:preprocess_equals(
'{{#invoke:Vital article/sandbox|getLevel|page=' .. k .. '}}', v)
end
end
|