Module:siwa-noun/testcases: Difference between revisions

No edit summary
No edit summary
 
(4 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", "[[Contionary:sivi]]\n[[Contionary:sỉd]]\n[[Contionary:sỉdia]]\n[[Contionary:sỉhta]]\n[[Contionary:sỉhka]]\n[[Contionary:sỉhma]]\n[[Contionary:sỉbma]], [[Contionary:sỉddįibma]]\n[[Contionary:sỉska]], [[Contionary:sỉddįiska]]"
{"sivi", "g"}
}
}
self:iterate(list,"check_inflection")
self:iterate(list,"check_output")
end
end


return tests
return tests