Module:siwa-noun/testcases: Difference between revisions
Jump to navigation
Jump to search
1 of 0 tests failed. (refresh)
No edit summary |
No edit summary |
||
| (8 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 of 0 tests 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:313: in function 'iterate' Module:siwa-noun/testcases:17: in function <Module:siwa-noun/testcases:13> (tail call): ? (tail call): ? [C]: in function 'xpcall' Module:fun/xpcall:37: in function 'xpcall' Module:UnitTests:389: in function <Module:UnitTests:350> (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