Модуль:Languages/tests
< Модуль:Languages
Версия от 11:23, 28 марта 2018; Alexandre (обсуждение | вклад) (Новая страница: «-- Unit tests for Module:URL. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_getRefHtml() self:preprocess_equals('{{…»)
Для документации этого модуля может быть создана страница Модуль:Languages/tests/doc
-- 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 | Q7737 }}', '<span class="ref-info" title="Русский язык" style="font-size:85%; cursor:help; color:#888;">(рус.)</span>') end return p