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:28, 30 January 2020 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.

local p = require('Module:UnitTests')

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

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

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

return p