Module:siwa-noun/testcases
- The following documentation is located at Module:siwa-noun/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
1 test failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
Script error during testing: Module:siwa-noun/testcases:7: attempt to call field 'make_cases' (a nil value)stack traceback: Module:siwa-noun/testcases:7: in function 'func' Module:UnitTests:247: in function 'iterate' Module:siwa-noun/testcases:17: in function <Module:siwa-noun/testcases:13> (tail call): ? [C]: in function 'xpcall' Module:UnitTests:299: in function <Module:UnitTests:261> (tail call): ? mw.lua:527: in function <mw.lua:507> (tail call): ? [C]: in function 'xpcall' ...cribunto/includes/engines/LuaStandalone/MWServer.lua:99: in function 'handleCall' ...cribunto/includes/engines/LuaStandalone/MWServer.lua:313: in function 'dispatch' ...cribunto/includes/engines/LuaStandalone/MWServer.lua:52: in function 'execute' ...Scribunto/includes/engines/LuaStandalone/mw_main.lua:7: in main chunk [C]: ? |
local tests = require('Module:UnitTests')
local m_noun = require('Module:siwa-noun')
function tests:check_output(term, expected, noresp)
return tests:equals(
term,
m_noun.make_cases(term),
expected,
{ show_difference = true }
)
end
function tests:test_example()
local list = {
{"sivi", "g"}
}
self:iterate(list,"check_output")
end
return tests