Modul:FootballClub/testcases
Aspect
Eroare Lua: expandTemplate: template "module test cases notice" does not exist.
-- Unit tests for [[Module:FootballClub]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_TeamFromFrameByKeyWithExistingKey()
self:preprocess_equals('{{#invoke:FootballClub|byKeyFromFrame|Steaua}}', '[[Fișier:600px background HEX-0E3193 HEX-FF0000 star HEX-FFFF00.svg|20px|border]] <span style="white-space:nowrap">[[:FC Steaua București|Steaua București]]</span>')
end
function p:test_TeamFromFrameByItemWithExistingKey()
self:preprocess_equals('{{#invoke:FootballClub|byKeyFromFrame|Q179658}}', '[[Fișier:600px background HEX-0E3193 HEX-FF0000 star HEX-FFFF00.svg|20px|border]] <span style="white-space:nowrap">[[:FC Steaua București|Steaua București]]</span>')
end
function p:test_TeamFromFrameByKeyWithNonexistingKey()
self:preprocess_equals('{{#invoke:FootballClub|byKeyFromFrame|Avântul Prăbușirea}}', '[[Fișier:Flag of None.svg|20px|border]] <span style="white-space:nowrap">Avântul Prăbușirea</span>')
end
return p