Tous les tests ont réussi (rafraichir)
Texte | Attendu | Obtenu | |
---|---|---|---|
yue | zh-yue | zh-yue | |
fr | nil | nil | |
vro | fiu-vro | fiu-vro | |
conv | wikispecies | wikispecies | |
nan | zh-min-nan | zh-min-nan | |
nb | no | no | |
egl | eml | eml | |
lzh | zh-classical | zh-classical | |
nrf | nrm | nrm | |
gsw | als | als | |
cmn | zh | zh | |
rup | roa-rup | roa-rup | |
nn | no | no | |
sgs | bat-smg | bat-smg | |
fra-nor | nrm | nrm |
local tests = require('Module:UnitTests')
local langs = require('Module:langues')
function tests:test_get_lien_Wikimedia()
local args = {
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {},
= {}
}
local testcases = {
= nil,
= 'zh',
= 'wikispecies',
= 'eml',
= 'nrm',
= 'als',
= 'zh-classical',
= 'zh-min-nan',
= 'no',
= 'no',
= 'nrm',
= 'roa-rup',
= 'bat-smg',
= 'fiu-vro',
= 'zh-yue'
}
for word, args_ in pairs(args) do
wmlinks = testcases
result = langs.get_lien_Wikimedia(word)
self:equals(word, result, wmlinks)
end
end
return tests