Module:siwa-noun/testcases: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local tests = require('Module:UnitTests') function tests:test_example() --here be the tests end return tests")
 
No edit summary
Line 1: Line 1:
local tests = require('Module:UnitTests')
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()
function tests:test_example()
--[[ here be the tests ]]
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
end


return tests
return tests

Navigation menu