Module:alu-IPA/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:alu-IPA/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
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
'a'e | /ʔaʔe/ | /ʔaʔe/ | |
paak | /paːk/ | /paːk/ | |
ko'ako'ara | /koʔakoʔaɾa/ | /koʔakoʔaɾa/ | |
pupuruhi'a | /pupuɾuhiʔa/ | /pupuɾuhiʔa/ | |
siri | /siɾi/ | /siɾi/ | |
'eno | /ʔeno/ | /ʔeno/ | |
'a'e | /ʔaʔe/ | /ʔaʔe/ | |
kapaa | /kapaː/ | /kapaː/ |
local tests = require('Module:UnitTests')
local m_alu_ipa = require('Module:alu-IPA')
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