Module:siwa-noun/testcases: Difference between revisions
Jump to navigation
Jump to search
1 test failed. (refresh)
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
return tests:equals( | return tests:equals( | ||
term, | term, | ||
m_noun.make_cases(), | m_noun.make_cases(term), | ||
expected, | expected, | ||
{ show_difference = true } | { show_difference = true } | ||
Line 12: | Line 12: | ||
function tests:test_example() | function tests:test_example() | ||
local list= { | local list = { | ||
"sivi", "" | {"sivi", "g"} | ||
} | } | ||
self:iterate(list,"check_output") | self:iterate(list,"check_output") |
Latest revision as of 14:12, 18 July 2021
- 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