Module:srn-IPA/testcases
Appearance
- The following documentation is located at Module:srn-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 | |
---|---|---|---|
mman | ˈmːan | ˈmːan | |
sranan | sɾaˈnan | sɾaˈnan |
local tests = require("Module:UnitTests")
local m_srn_IPA = require("Module:srn-IPA")
function tests:ipa(text, expected)
local system = 0
local phonemic, phonetic_a, phonetic_b = m_srn_IPA.make_IPAs(text, system)
self:equals(text, phonemic, expected)
end
function tests:test_ipa()
self:ipa("mman", "ˈmːan")
self:ipa("sranan", "sɾaˈnan")
end
return tests