Module:qay-pron/testcases: Difference between revisions
Jump to navigation
Jump to search
All tests passed. (refresh)
No edit summary |
No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
{ display = IPA_style, show_difference = true} | { display = IPA_style, show_difference = true} | ||
) | ) | ||
end | end | ||
Line 52: | Line 22: | ||
local list = { | local list = { | ||
{"ankyu", "ˈäŋ.kju"}, | {"ankyu", "ˈäŋ.kju"}, | ||
{"netujas", "neˈtu. | {"netujas", "neˈtu.d͡ʒäs"}, | ||
{"nivajya", " | {"nivajya", "niˈväd͡ʒ.jä"}, | ||
{"maviyēri", "mä.viˈjeː.ɾi"}, | {"maviyēri", "mä.viˈjeː.ɾi"}, | ||
{"tahi", "ˈtä.çi"}, | {"tahi", "ˈtä.çi"}, | ||
{"baho", "ˈbä.xo"}, | {"baho", "ˈbä.xo"}, | ||
{"tavvāng", "täˈväːŋ"}, | {"tavvāng", "täˈväːŋ"}, | ||
{"disyyang", " | {"disyyang", "diˈsjäŋ"}, | ||
{"tipuyya", "tiˈpʊ.jä"}, | {"tipuyya", "tiˈpʊ.jä"}, | ||
{"ming", "mɪŋ"}, | {"ming", "mɪŋ"}, | ||
Line 69: | Line 39: | ||
{"edauyi", "eˈdä.wi"}, | {"edauyi", "eˈdä.wi"}, | ||
{"nekuyi", "ˈne.kwi"}, | {"nekuyi", "ˈne.kwi"}, | ||
{"linktang", "lɪŋkˈtäŋ"}, | |||
{"linktang", " | |||
{"silvnang", "sɪlvˈnäŋ"}, | {"silvnang", "sɪlvˈnäŋ"}, | ||
{" | {"ay", "äɪ"}, | ||
{" | {"2bā´mā", "ˌbäːˈmäː"} | ||
} | } | ||
self:iterate(list, "check_phonetic") | self:iterate(list, "check_phonetic") |
Latest revision as of 20:34, 6 October 2023
- The following documentation is located at Module:qay-pron/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
ankyu | ˈäŋ.kju | ˈäŋ.kju | |
netujas | neˈtu.d͡ʒäs | neˈtu.d͡ʒäs | |
nivajya | niˈväd͡ʒ.jä | niˈväd͡ʒ.jä | |
maviyēri | mä.viˈjeː.ɾi | mä.viˈjeː.ɾi | |
tahi | ˈtä.çi | ˈtä.çi | |
baho | ˈbä.xo | ˈbä.xo | |
tavvāng | täˈväːŋ | täˈväːŋ | |
disyyang | diˈsjäŋ | diˈsjäŋ | |
tipuyya | tiˈpʊ.jä | tiˈpʊ.jä | |
ming | mɪŋ | mɪŋ | |
enya | ˈɛn.jä | ˈɛn.jä | |
agon | ˈä.ɡɔn | ˈä.ɡɔn | |
pakur | ˈpä.kʊɾ | ˈpä.kʊɾ | |
mine | ˈmi.nə | ˈmi.nə | |
huākaya | ˈwäː.kä.jä | ˈwäː.kä.jä | |
adauyi | äˈdä.wi | äˈdä.wi | |
edauyi | eˈdä.wi | eˈdä.wi | |
nekuyi | ˈne.kwi | ˈne.kwi | |
linktang | lɪŋkˈtäŋ | lɪŋkˈtäŋ | |
silvnang | sɪlvˈnäŋ | sɪlvˈnäŋ | |
ay | äɪ | äɪ | |
2bā´mā | ˌbäːˈmäː | ˌbäːˈmäː |
local tests = require('Module:UnitTests')
local m_IPA = require('Module:qay-pron')
local function IPA_style(IPA)
return '<span style="font-size:110%;font-family:Gentium,\'DejaVu Sans\',\'Segoe UI\',sans-serif>' .. IPA .. '</span>'
end
local function link(term)
return '[[Contionary:' .. term .. "#Ayeri|" .. term .. ']]'
end
function tests:check_phonetic(term, expected)
return tests:equals(
link(term),
m_IPA.crux(term),
expected,
{ display = IPA_style, show_difference = true}
)
end
function tests:test_phonetic()
local list = {
{"ankyu", "ˈäŋ.kju"},
{"netujas", "neˈtu.d͡ʒäs"},
{"nivajya", "niˈväd͡ʒ.jä"},
{"maviyēri", "mä.viˈjeː.ɾi"},
{"tahi", "ˈtä.çi"},
{"baho", "ˈbä.xo"},
{"tavvāng", "täˈväːŋ"},
{"disyyang", "diˈsjäŋ"},
{"tipuyya", "tiˈpʊ.jä"},
{"ming", "mɪŋ"},
{"enya", "ˈɛn.jä"},
{"agon", "ˈä.ɡɔn"},
{"pakur", "ˈpä.kʊɾ"},
{"mine", "ˈmi.nə"},
{"huākaya", "ˈwäː.kä.jä"},
{"adauyi", "äˈdä.wi"},
{"edauyi", "eˈdä.wi"},
{"nekuyi", "ˈne.kwi"},
{"linktang", "lɪŋkˈtäŋ"},
{"silvnang", "sɪlvˈnäŋ"},
{"ay", "äɪ"},
{"2bā´mā", "ˌbäːˈmäː"}
}
self:iterate(list, "check_phonetic")
end
return tests