Module:txb-nominal/testcases
Appearance
- The following documentation is located at Module:txb-nominal/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
3 of 8 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
pat,1 | pxt | pxt | |
pzt,1 | pat | pat | |
pet,1 | pait | pet | |
pit,1 | pit | pit | |
pot,1 | paut | pot | |
put,1 | put | put | |
patet,1 | pxtet | pxtet | |
patet,2 | patait | pztet |
local p = require('Module:UnitTests')
local u = require("Module:txb-nominal")
function p:single_test_stressvar(i,N,o)
self:equals(i..","..N, u.stressvar(i,N), o)
end
function p:test_stressvar()
local examples = {
{ "pat", 1, "pxt" },
{ "pzt", 1, "pat" },
{ "pet", 1, "pait" },
{ "pit", 1, "pit" },
{ "pot", 1, "paut" },
{ "put", 1, "put" },
{ "patet", 1, "pxtet" },
{ "patet", 2, "patait" },
}
self:iterate(examples, "single_test_stressvar")
end
return p