Module:R:Duden/testcases

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

Failed 4 tests failed.

Name Expected Actual
Failed testCreateWithParameter in ''Duden'' online “” in ''Duden'' online
Failed testCreateWithPositionalParameter in ''Duden'' online “” in ''Duden'' online
Failed testCreateWithPositionalParameterAndArgument in ''Duden'' online “” in ''Duden'' online
Failed testCreateWithoutParameters in ''Duden'' online “” in ''Duden'' online

local ScribuntoUnit = require('Module:ScribuntoUnit')

local m_duden = require('Module:R:Duden')
local suite = ScribuntoUnit:new()

function suite:testCreateWithParameter()
	local f = mw.getCurrentFrame():newChild{ args = { w = 'Täst'} }
    self:assertEquals(" in ''Duden'' online", m_duden.create(f:newChild{}))
end

function suite:testCreateWithPositionalParameter()
	local f = mw.getCurrentFrame():newChild{ args = { 'Täst'} }
    self:assertEquals(" in ''Duden'' online", m_duden.create(f:newChild{}))
end

function suite:testCreateWithPositionalParameterAndArgument()
	local f = mw.getCurrentFrame():newChild{ args = { 'Täst', w = 'Tüst'} }
    self:assertEquals(" in ''Duden'' online", m_duden.create(f:newChild{}))
end

function suite:testCreateWithoutParameters()
	local f = mw.getCurrentFrame():newChild{ args = { } }
    self:assertEquals(" in ''Duden'' online", m_duden.create(f:newChild{}))
end

return suite