Module:User:Octocactuses/testcases

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