Module:hak-pron/sandbox/testcases
Appearance
- The following documentation is located at Module:hak-pron/sandbox/testcases/documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox of
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
cinˋ senˋ | t͡sʰin⁵³ sen⁵³ | t͡sʰin⁵³ sen⁵³ | |
piˋ zhunˊ | pʰi⁵³ t͡ʃun²⁴ | pʰi⁵³ t͡ʃun²⁴ | |
ciuˋ guiˇ | t͡sʰiu⁵³ kui¹¹ | t͡sʰiu⁵³ kui¹¹ | |
goˋ kiug | ko⁵³ kʰiuk⁵ | ko⁵³ kʰiuk⁵ | |
sinˋ ngiong | sin⁵³ ŋioŋ⁵⁵ | sin⁵³ ŋioŋ⁵⁵ | |
boˋ long˖ | po⁵³ loŋ³³ | po⁵³ loŋ³³ | |
fungˋ siugˋ | fuŋ⁵³ siuk² | fuŋ⁵³ siuk² | |
foˊ sanˋ | fo²⁴⁻³³ san⁵³ | fo²⁴⁻³³ san⁵³ | |
gieuˊ guˊ | kieu²⁴⁻³³ ku²⁴ | kieu²⁴⁻³³ ku²⁴ | |
shiuˊ boiˇ | ʃiu²⁴⁻³³ poi¹¹ | ʃiu²⁴⁻³³ poi¹¹ | |
siauˊ shod | siau²⁴⁻³³ ʃot⁵ | siau²⁴⁻³³ ʃot⁵ | |
zhimˊ teu | t͡ʃim²⁴⁻³³ tʰeu⁵⁵ | t͡ʃim²⁴⁻³³ tʰeu⁵⁵ | |
siˊ cui˖ | si²⁴⁻³³ t͡sʰui³³ | si²⁴⁻³³ t͡sʰui³³ | |
daˊ liabˋ | ta²⁴⁻³³ liap² | ta²⁴⁻³³ liap² | |
seˇ goˋ | se¹¹ ko⁵³ | se¹¹ ko⁵³ | |
boiˇ ginˊ | poi¹¹ kin²⁴ | poi¹¹ kin²⁴ | |
sheˇ gaiˇ | ʃe¹¹ kai¹¹ | ʃe¹¹ kai¹¹ | |
seuˇ ngiug | seu¹¹ ŋiuk⁵ | seu¹¹ ŋiuk⁵ | |
laiˇ er | lai¹¹ ə⁵⁵ | lai¹¹ ə⁵⁵ | |
chauˇ mui˖ | t͡ʃʰau¹¹ mui³³ | t͡ʃʰau¹¹ mui³³ | |
biongˇ hogˋ | pioŋ¹¹ hok² | pioŋ¹¹ hok² | |
hag gaˋ | hak⁵⁻² ka⁵³ | hak⁵⁻² ka⁵³ | |
ded ziongˊ | tet⁵⁻² t͡sioŋ²⁴ | tet⁵⁻² t͡sioŋ²⁴ | |
rhid banˇ | ʒit⁵⁻² pan¹¹ | ʒit⁵⁻² pan¹¹ | |
fad gog | fat⁵⁻² kok⁵ | fat⁵⁻² kok⁵ | |
ab er | ap⁵⁻² ə⁵⁵ | ap⁵⁻² ə⁵⁵ | |
fab tu˖ | fap⁵⁻² tʰu³³ | fap⁵⁻² tʰu³³ | |
chud ngibˋ | t͡ʃʰut⁵⁻² ŋip² | t͡ʃʰut⁵⁻² ŋip² | |
ngien dungˋ | ŋien⁵⁵ tuŋ⁵³ | ŋien⁵⁵ tuŋ⁵³ | |
nam ziiˊ | nam⁵⁵ t͡sɨ²⁴ | nam⁵⁵ t͡sɨ²⁴ | |
ki guaiˇ | kʰi⁵⁵ kuai¹¹ | kʰi⁵⁵ kuai¹¹ | |
fung sed | fuŋ⁵⁵ set⁵ | fuŋ⁵⁵ set⁵ | |
ngiau pin | ŋiau⁵⁵ pʰin⁵⁵ | ŋiau⁵⁵ pʰin⁵⁵ | |
piang ti˖ | pʰiaŋ⁵⁵ tʰi³³ | pʰiaŋ⁵⁵ tʰi³³ | |
nung rhogˋ | nuŋ⁵⁵ ʒok² | nuŋ⁵⁵ ʒok² |
local p = require("Module:UnitTests")
local m_pron = require("Module:hak-pron/sandbox")
function p:test_IPA_conv()
local examples = {
{ "cinˋ senˋ", "Hailu", "t͡sʰin⁵³ sen⁵³" },
{ "piˋ zhunˊ", "Hailu", "pʰi⁵³ t͡ʃun²⁴" },
{ "ciuˋ guiˇ", "Hailu", "t͡sʰiu⁵³ kui¹¹" },
{ "goˋ kiug", "Hailu", "ko⁵³ kʰiuk⁵" },
{ "sinˋ ngiong", "Hailu", "sin⁵³ ŋioŋ⁵⁵" },
{ "boˋ long˖", "Hailu", "po⁵³ loŋ³³" },
{ "fungˋ siugˋ", "Hailu", "fuŋ⁵³ siuk²" },
{ "foˊ sanˋ", "Hailu", "fo²⁴⁻³³ san⁵³" },
{ "gieuˊ guˊ", "Hailu", "kieu²⁴⁻³³ ku²⁴" },
{ "shiuˊ boiˇ", "Hailu", "ʃiu²⁴⁻³³ poi¹¹" },
{ "siauˊ shod", "Hailu", "siau²⁴⁻³³ ʃot⁵" },
{ "zhimˊ teu", "Hailu", "t͡ʃim²⁴⁻³³ tʰeu⁵⁵" },
{ "siˊ cui˖", "Hailu", "si²⁴⁻³³ t͡sʰui³³" },
{ "daˊ liabˋ", "Hailu", "ta²⁴⁻³³ liap²" },
{ "seˇ goˋ", "Hailu", "se¹¹ ko⁵³" },
{ "boiˇ ginˊ", "Hailu", "poi¹¹ kin²⁴" },
{ "sheˇ gaiˇ", "Hailu", "ʃe¹¹ kai¹¹" },
{ "seuˇ ngiug", "Hailu", "seu¹¹ ŋiuk⁵" },
{ "laiˇ er", "Hailu", "lai¹¹ ə⁵⁵" },
{ "chauˇ mui˖", "Hailu", "t͡ʃʰau¹¹ mui³³" },
{ "biongˇ hogˋ", "Hailu", "pioŋ¹¹ hok²" },
{ "hag gaˋ", "Hailu", "hak⁵⁻² ka⁵³" },
{ "ded ziongˊ", "Hailu", "tet⁵⁻² t͡sioŋ²⁴" },
{ "rhid banˇ", "Hailu", "ʒit⁵⁻² pan¹¹" },
{ "fad gog", "Hailu", "fat⁵⁻² kok⁵" },
{ "ab er", "Hailu", "ap⁵⁻² ə⁵⁵" },
{ "fab tu˖", "Hailu", "fap⁵⁻² tʰu³³" },
{ "chud ngibˋ", "Hailu", "t͡ʃʰut⁵⁻² ŋip²" },
{ "ngien dungˋ", "Hailu", "ŋien⁵⁵ tuŋ⁵³" },
{ "nam ziiˊ", "Hailu", "nam⁵⁵ t͡sɨ²⁴"},
{ "ki guaiˇ", "Hailu", "kʰi⁵⁵ kuai¹¹"},
{ "fung sed", "Hailu", "fuŋ⁵⁵ set⁵"},
{ "ngiau pin", "Hailu", "ŋiau⁵⁵ pʰin⁵⁵"},
{ "piang ti˖", "Hailu", "pʰiaŋ⁵⁵ tʰi³³"},
{ "nung rhogˋ", "Hailu", "nuŋ⁵⁵ ʒok²" },
}
self:iterate(examples, function (self, text, dialect, expected)
self:equals(text, m_pron.hrs_to_ipa(text, dialect), expected)
end)
end
return p