Module:User:Octocactuses/testcases
Appearance
- The following documentation is located at Module:User:Octocactuses/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
1 of 0 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
Script error during testing: Module:User:Octocactuses/testcases:7: attempt to call field 'show' (a nil value)stack traceback: [C]: in function 'show' Module:User:Octocactuses/testcases:7: in function 'ipa' Module:User:Octocactuses/testcases:12: in function <Module:User:Octocactuses/testcases:11> (tail call): ? [C]: in function 'xpcall' Module:UnitTests:370: in function <Module:UnitTests:329> (tail call): ? mw.lua:527: in function <mw.lua:507> [C]: ? [C]: in function 'expandTemplate' mw.lua:333: in function 'expandTemplate' Module:documentation:891: in function 'chunk' mw.lua:527: in function <mw.lua:507> [C]: ? |
local tests = require('Module:UnitTests')
local m_alu_ipa = require('Module:User:Octocactuses')
function tests:ipa(text, expected)
local args = text
local get_out = {args, text}
local out = m_alu_ipa.show(get_out, true)
self:equals(text, out[1], expected)
end
function tests:test_ipa()
self:ipa('\'a\'e', '/ʔaʔe/')
self:ipa('paak', '/paːk/')
self:ipa('ko\'ako\'ara', '/koʔakoʔaɾa/')
self:ipa('pupuruhi\'a', '/pupuɾuhiʔa/')
self:ipa('siri', '/siɾi/')
self:ipa('\'eno', '/ʔeno/')
self:ipa('\'a\'e', '/ʔaʔe/')
self:ipa('kapaa', '/kapaː/')
end
return tests