Module:qlu-pron/testcases: Difference between revisions
Jump to navigation
Jump to search
30 of 30 tests failed. (refresh)
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
{"addzurru", "/ɐdˈd͡zur.ru/ [ɐdˈd͡zur.ru]", "azzurru"}, | {"addzurru", "/ɐdˈd͡zur.ru/ [ɐdˈd͡zur.ru]", "azzurru"}, | ||
{"lugheze", "/luˈɡe.ze/ [luˈɡ˖e.ze]", "lughese"}, | {"lugheze", "/luˈɡe.ze/ [luˈɡ˖e.ze]", "lughese"}, | ||
{"pharmacia", "/ | {"pharmacia", "/ɸɐrˈma.t͡ʃɐ/ [fɐrˈma.t͡ʃɐ]"}, | ||
{"pharmacïa", "/ɸɐr.mɐˈt͡ʃi.ɐ/ [fɐr.mɐˈt͡ʃi.ɐ]", "pharmacia"}, | {"pharmacïa", "/ɸɐr.mɐˈt͡ʃi.ɐ/ [fɐr.mɐˈt͡ʃi.ɐ]", "pharmacia"}, | ||
{"salcicia", "sɐlˈt͡ʃi.t͡ʃa", "salcicia", "phonemic"}, --an Italian word to test stressed <ci> | {"salcicia", "sɐlˈt͡ʃi.t͡ʃa", "salcicia", "phonemic"}, --an Italian word to test stressed <ci> | ||
Revision as of 18:36, 25 January 2025
- The following documentation is located at Module:qlu-pron/testcases/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
30 of 30 tests failed. (refresh)
| Text | Expected | Actual | |
|---|---|---|---|
| liuvaleicu (líuvaleicu) | /ˌliw.βɐˈli.ku/ [ˌlʏw.βɐˈli.xu] | table | |
| creggu | /ˈkreŋ.ɡu/ [ˈkreŋ˗.ɡ˗u] | table | |
| creggi (cregghi) | /ˈkreŋ.ɡi/ [ˈkreŋ˖.ɡ˖i] | table | |
| aggio | /ˈad.d͡ʒo/ [ˈad.d͡ʒo] | table | |
| aggiu (agghiu) | /ˈaŋ.ɡju/ [ˈaŋ˖.ɡ˖ju] | table | |
| pizza (pittsa) | /ˈpit.t͡sɐ/ [ˈpit.t͡sɐ] | table | |
| azzurru (addzurru) | /ɐdˈd͡zur.ru/ [ɐdˈd͡zur.ru] | table | |
| lughese (lugheze) | /luˈɡe.ze/ [luˈɡ˖e.ze] | table | |
| pharmacia | /ɸɐrˈma.t͡ʃɐ/ [fɐrˈma.t͡ʃɐ] | table | |
| pharmacia (pharmacïa) | /ɸɐr.mɐˈt͡ʃi.ɐ/ [fɐr.mɐˈt͡ʃi.ɐ] | table | |
| salcicia (salcicia) | sɐlˈt͡ʃi.t͡ʃa | table | |
| salcicia (salcïcia) | sɐlˈt͡ʃi.t͡ʃa | table | |
| salcicia (salcicïa) | sɐlˈt͡ʃi.t͡ʃja | table | |
| salcicia (salcïcïa) | sɐlˈt͡ʃi.t͡ʃja | table | |
| aglio | /ˈaʎ.ʎo/ [ˈaʎ.ʎo] | table | |
| agliare | /ɐʎˈʎa.re/ [ɐʎˈʎa.re] | table | |
| agliare (aglïare) | /ɐʎ.ʎiˈa.re/ [ɐʎ.ʎiˈa.re] | table | |
| gaggia (gaggïa) | ɡɐdˈd͡ʒi.ɐ | table | |
| segguare | seŋˈɡʷa.re | table | |
| biegguare (bieggüare) | bjeɡˈɡʷa.re | table | |
| cosei | koˈsi | table | |
| casa (caza) | ˈka.zɐ | table | |
| cremise (crâemize) | ˈkrɛ.mi.ze | table | |
| broþarscape (bróþarscape) | ˌbro.θɐrˈska.ɸe | table | |
| aegguale (ăeggüale) | ɛɡˈɡʷa.le | table | |
| spechio (spaechio) | ˈspɛ.kjo | table | |
| domnu (daumnu) | ˈdɔm.nu | table | |
| avogciu | ɐˈβoŋ˖.k̟ju | table | |
| lamna | ˈlam.nɐ | table | |
| augno | ˈɔɲ.ɲo | table |
local tests = require('Module:UnitTests')
local m_IPA = require('Module:qlu-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 linkup(text)
return "[[Contionary:" .. text .. "#Luthic|" .. text .. "]]"
end
function tests:check_output(term, expected, noresp, type)
return tests:equals(
noresp == "" and linkup(term) or noresp and linkup(noresp) .. "<br>(" .. term .. ")" or linkup(term),
m_IPA.crux(term, type or "test"),
expected,
{ display = IPA_style, show_difference = true }
)
end
function tests:test_example()
local list = {
{"líuvaleicu", "/ˌliw.βɐˈli.ku/ [ˌlʏw.βɐˈli.xu]", "liuvaleicu"},
{"creggu", "/ˈkreŋ.ɡu/ [ˈkreŋ˗.ɡ˗u]"},
{ "cregghi", "/ˈkreŋ.ɡi/ [ˈkreŋ˖.ɡ˖i]", "creggi"},
{"aggio", "/ˈad.d͡ʒo/ [ˈad.d͡ʒo]"},
{"agghiu", "/ˈaŋ.ɡju/ [ˈaŋ˖.ɡ˖ju]", "aggiu"},
{"pittsa", "/ˈpit.t͡sɐ/ [ˈpit.t͡sɐ]", "pizza"},
{"addzurru", "/ɐdˈd͡zur.ru/ [ɐdˈd͡zur.ru]", "azzurru"},
{"lugheze", "/luˈɡe.ze/ [luˈɡ˖e.ze]", "lughese"},
{"pharmacia", "/ɸɐrˈma.t͡ʃɐ/ [fɐrˈma.t͡ʃɐ]"},
{"pharmacïa", "/ɸɐr.mɐˈt͡ʃi.ɐ/ [fɐr.mɐˈt͡ʃi.ɐ]", "pharmacia"},
{"salcicia", "sɐlˈt͡ʃi.t͡ʃa", "salcicia", "phonemic"}, --an Italian word to test stressed <ci>
{"salcïcia", "sɐlˈt͡ʃi.t͡ʃa", "salcicia", "phonemic"},
{"salcicïa", "sɐlˈt͡ʃi.t͡ʃja", "salcicia", "phonemic"},
{"salcïcïa", "sɐlˈt͡ʃi.t͡ʃja", "salcicia", "phonemic"},
{"aglio", "/ˈaʎ.ʎo/ [ˈaʎ.ʎo]"},
{"agliare", "/ɐʎˈʎa.re/ [ɐʎˈʎa.re]"},
{"aglïare", "/ɐʎ.ʎiˈa.re/ [ɐʎ.ʎiˈa.re]", "agliare"},
{"gaggïa", "ɡɐdˈd͡ʒi.ɐ", "gaggia", "phonemic"},
{"segguare", "seŋˈɡʷa.re", "", "phonemic"},
{"bieggüare", "bjeɡˈɡʷa.re", "biegguare", "phonemic"},
{"cosei", "koˈsi", "", "phonemic"},
{"caza", "ˈka.zɐ", "casa", "phonemic"},
{"crâemize", "ˈkrɛ.mi.ze", "cremise", "phonemic"},
{"bróþarscape", "ˌbro.θɐrˈska.ɸe", "broþarscape", "phonemic"},
{"ăeggüale", "ɛɡˈɡʷa.le", "aegguale", "phonemic"},
{"spaechio", "ˈspɛ.kjo", "spechio", "phonemic"},
{"daumnu", "ˈdɔm.nu", "domnu", "phonemic"},
{"avogciu", "ɐˈβoŋ˖.k̟ju", "", "phonetic"},
{"lamna", "ˈlam.nɐ", "", "phonemic"},
{"augno", "ˈɔɲ.ɲo", "", "phonemic"},
--[[{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},
{"", ""},]]
}
self:iterate(list, "check_output")
end
return tests