Jump to content

Module:Latin/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zyxw (talk | contribs) at 06:31, 30 January 2020 (update). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.

local p = require('Module:UnitTests')

function p:test1()
    self:preprocess_equals_preprocess(
        '{{#invoke:Latin/sandbox|removeaccents| Ä ä Ö ö Ü ü }}',
        '{{#invoke:Latin|removeaccents| Ä ä Ö ö Ü ü }}'
        )
end

function p:test2()
    self:preprocess_equals_preprocess(
        '{{#invoke:Latin/sandbox|removeaccents| Ä ä Ö ö Ü ü |German= }}',
        '{{#invoke:Latin|removeaccents| Ä ä Ö ö Ü ü |German= }}'
        )
end

function p:test3()
    self:preprocess_equals_preprocess(
        '{{#invoke:Latin/sandbox|removeaccents| Ä ä Ö ö Ü ü |German=yes }}',
        '{{#invoke:Latin|removeaccents| Ä ä Ö ö Ü ü |German=yes }}'
        )
end

return p