Module:siwa-noun/testcases: Difference between revisions
Created page with "local tests = require('Module:UnitTests') function tests:test_example() --here be the tests end return tests" |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| 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(term), | |||
expected, | |||
{ show_difference = true } | |||
) | |||
end | |||
function tests:test_example() | function tests:test_example() | ||
local list = { | |||
{"sivi", "g"} | |||
} | |||
self:iterate(list,"check_output") | |||
end | end | ||
return tests | return tests | ||