Jump to content

Module:Convert/testcases/messages1

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by WOSlinker (talk | contribs) at 19:33, 21 September 2013 (copied from Template:Convert/testcases/messages1). 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)
-- *<code><nowiki>{{convert}}</nowiki></code> compared with <code><nowiki>{{convert/sandboxlua}}</nowiki></code>
-- Unit Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_hello()

self:preprocess_equals_preprocess_many('{{#invoke:convert | convert |', '}}', '{{convert', '}}', {
        {'2'}, -- equivalent to {'2','2'},
        {'-2', '-2.0'},
    })
end

return p