Module:nan-hnm-pron/testcases
Appearance
- පහත දැක්වෙන උපදෙස්, Module:nan-hnm-pron/testcases/documentation හි පිහිටා ඇත. Module:nan-hnm-pron/testcases/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:nan-hnm-pron.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ghua3 | /ɡua³¹/ | /ɡua³¹/ | ||
ddin6 di6 | /ɗien⁵³⁻⁴² ti⁵³/ | /ɗien⁵³⁻⁴² ti⁵³/ | ||
gin4 hhua1 dua1 | /kien¹¹ ɦua³³ tua³³/ | /kien¹¹ ɦua³³ tua³³/ | ||
hhue1 li2 geh7 | /ɦue³³ li²² keʔ⁵³/ | /ɦue³³ li²² keʔ⁵³/ |
local p = require('Module:UnitTests')
local m = require('Module:nan-hnm-pron')
function p:ipa(text, expected)
self:equals(text, '<span class="IPA">' .. m.ipa(text) .. '</span>', '<span class="IPA">' .. expected .. '</span>')
end
function p:test_ipa()
self:ipa('ghua3', '/ɡua³¹/')
self:ipa('ddin6 di6', '/ɗien⁵³⁻⁴² ti⁵³/')
self:ipa('gin4 hhua1 dua1', '/kien¹¹ ɦua³³ tua³³/')
self:ipa('hhue1 li2 geh7', '/ɦue³³ li²² keʔ⁵³/')
end
return p