มอดูล:R:Duden/testcases
- The following documentation is located at มอดูล:R:Duden/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
ข้อผิดพลาด Lua ใน package.lua บรรทัดที่ 80: module 'Module:ScribuntoUnit' not found
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("[http://www.duden.de/rechtschreibung/Taest Täst] in ''Duden'' online", m_duden.create(f:newChild{}))
end
function suite:testCreateWithPositionalParameter()
local f = mw.getCurrentFrame():newChild{ args = { 'Täst'} }
self:assertEquals("[http://www.duden.de/rechtschreibung/Täst 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("[http://www.duden.de/rechtschreibung/Täst Tüst] in ''Duden'' online", m_duden.create(f:newChild{}))
end
function suite:testCreateWithoutParameters()
local f = mw.getCurrentFrame():newChild{ args = { } }
self:assertEquals("[http://www.duden.de/rechtschreibung/R:Duden/testcases R:Duden/testcases] in ''Duden'' online", m_duden.create(f:newChild{}))
end
return suite