• The account request system seems to be hiding some requests. Join the Linguifex Discord server for support if you haven't been granted access after more than 24 hours. Be sure to check your spam folder! • The request form is only for screening out spambots. No need to share private info, just some conlanging experience to prove you're not a bot! • Donations for Linguifex upkeep can be given at Liberapay. Thank you! |
Module:siwa-noun/testcases: Difference between revisions
Jump to navigation
Jump to search
All tests passed. (refresh)
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
"sivi", | "sivi", | ||
[=[ | [=[ | ||
[[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]] | |||
]=] | ]=] | ||
} | } |
Revision as of 14:08, 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 | |||
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 |
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",
[=[
[[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]]
]=]
}
self:iterate(list,"check_inflection")
end
return tests