Module:mnp-pron/testcases
Appearance
- පහත දැක්වෙන උපදෙස්, Module:mnp-pron/testcases/documentation හි පිහිටා ඇත. Module:mnp-pron/testcases/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:mnp-pron.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
gṳ̌ing-só̤ng | /kyiŋ²¹ sɔŋ⁵⁴/ | /kyiŋ²¹ sɔŋ⁵⁴/ | ||
gṳ̌ing-só̤ng/gṳ̌ing-só̤ng | /kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴/ | /kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴/ | ||
gṳ̌ing só̤ng | /kyiŋ²¹ sɔŋ⁵⁴/ | /kyiŋ²¹ sɔŋ⁵⁴/ | ||
mì-tê | /mi⁴² tʰe³³/ | /mi⁴² tʰe³³/ | ||
ngṳè | /ŋyɛ⁴²/ | /ŋyɛ⁴²/ | ||
sáing-siu̿ | /saiŋ⁵⁴ siu³³/ | /saiŋ⁵⁴ siu³³/ | ||
ce̿ng | /t͡seiŋ³³/ | /t͡seiŋ³³/ |
local p = require('Module:UnitTests')
local m = require('Module:mnp-pron')
function p:ipa(text, expected)
self:equals(text, m.ipa(text), expected)
end
function p:test_ipa()
self:ipa('gṳ̌ing-só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/')
self:ipa('gṳ̌ing-só̤ng/gṳ̌ing-só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/, /kyiŋ²¹ sɔŋ⁵⁴/')
self:ipa('gṳ̌ing só̤ng', '/kyiŋ²¹ sɔŋ⁵⁴/')
self:ipa('mì-tê', '/mi⁴² tʰe³³/')
self:ipa('ngṳè', '/ŋyɛ⁴²/')
self:ipa('sáing-siu̿', '/saiŋ⁵⁴ siu³³/')
self:ipa('ce̿ng', '/t͡seiŋ³³/')
end
return p