Module:siwa-noun/testcases: Difference between revisions
Jump to navigation
Jump to search
All tests passed. (refresh)
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
function tests:test_example() | function tests:test_example() | ||
local list= { | local list = { | ||
"sivi", "" | "sivi", "g" | ||
} | } | ||
self:iterate(list,"check_output") | self:iterate(list,"check_output") |
Revision as of 14:11, 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
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
sivi | |||
g |
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", "g"
}
self:iterate(list,"check_output")
end
return tests