Модул:Languages/tests

Мавод аз Википедиа — донишномаи озод
Ҳуҷҷатгузорӣ
-- Unit tests for [[Module:URL]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_getRefHtml()
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | }}', '')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | QNNN }}', '')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | Q1860 }}', '<span class="ref-info" title="Забони ингилисӣ" style="font-size:85%; cursor:help; color:#888;">(ингл.)</span>')
    self:preprocess_equals('{{#invoke:Languages | getRefHtmlFrame | Q9260 }}', '<span class="ref-info" title="Забони тоҷикӣ" style="font-size:85%; cursor:help; color:#888;">(тоҷ.)</span>')
end

return p