Module:User:Jberkel/usex/templates/testcases

Hello, you have come here looking for the meaning of the word Module:User:Jberkel/usex/templates/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Jberkel/usex/templates/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Jberkel/usex/templates/testcases in singular and plural. Everything you need to know about the word Module:User:Jberkel/usex/templates/testcases you have here. The definition of the word Module:User:Jberkel/usex/templates/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Jberkel/usex/templates/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

Lua error in Module:User:Jberkel/usex at line 119: assign to undeclared variable 'wrap'


local ScribuntoUnit = require('Module:ScribuntoUnit')
local m_usex_templates = require('Module:User:Jberkel/usex/templates')
local suite = ScribuntoUnit:new()

function usex_t(args)
    local frame = mw.getCurrentFrame():newChild{ title = 'test', args = args }
    return m_usex_templates.usex_t(frame:newChild{})
end

function usex_t_quote(args)
    local frame = mw.getCurrentFrame():newChild{ title = 'test', args = args }
    return m_usex_templates.usex_t(frame:newChild{ args = { quote = '1' } })
end

function suite:test_usex_t_example()
    local result = usex_t { 'fr', 'Ceci est un exemple', 'This is an example' }
    suite:assertEquals('<div class="h-usage-example"><i class="Latn mention e-example" lang="fr">Ceci est un exemple</i>&lrm; <dl><dd><span class="e-translation">This is an example</span></dd></dl></div>', result)
end

function suite:test_usex_t_quote()
    local result = usex_t_quote { 'fr', 'Ceci est un quote', 'This is a quotation' }
    suite:assertEquals('<div class="h-quotation"><span class="Latn e-quotation" lang="fr">Ceci est un quote</span>&lrm; <dl><dd><span class="e-translation">This is a quotation</span></dd></dl></div>', result)
end

return suite