Module:siwa-noun/testcases: Difference between revisions
Jump to navigation
Jump to search
1 test failed. (refresh)
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
| [[Contionary:sỉska]], [[Contionary:sỉddįiska]] | | [[Contionary:sỉska]], [[Contionary:sỉddįiska]] | ||
]=] | ]=] | ||
} | } | ||
self:iterate(list) | |||
end | end | ||
return tests | return tests |
Revision as of 13:56, 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:39: bad argument #2 to 'iterate' (expected function or string, got nil)stack traceback: [C]: in function 'error' Module:UnitTests:241: in function 'iterate' Module:siwa-noun/testcases:39: 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(),
expected,
{ show_difference = true }
)
end
function tests:test_example()
local list= {
"sivi",
[=[
|-
! Unmarked<br />''agentive/dative''
! Marked<br />''patientive/genitive''
! Locative
|-
! inessive
! illative
! elative
! adessive
! allative
! ablative
|-
| [[Contionary:sivi]]
| [[Contionary:sỉd]]
| [[Contionary:sỉdia]]
| [[Contionary:sỉhta]]
| [[Contionary:sỉhka]]
| [[Contionary:sỉhma]]
| [[Contionary:sỉbma]], [[Contionary:sỉddįibma]]
| [[Contionary:sỉska]], [[Contionary:sỉddįiska]]
]=]
}
self:iterate(list)
end
return tests