Module:siwa-noun/testcases
Jump to navigation
Jump to search
All tests passed. (refresh)
- The following documentation is located at Module:siwa-noun/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
All tests passed. (refresh)
Text | Expected | Actual |
---|
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]]
]=]
}
end
return tests