Module:R:Duden/testcases

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("Täst in Duden online", m_duden.create(f:newChild{})) end

function suite:testCreateWithPositionalParameter local f = mw.getCurrentFrame:newChild{ args = { 'Täst'} } self:assertEquals("R:Duden/testcases 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("Tüst in Duden online", m_duden.create(f:newChild{})) end

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

return suite