Module:User:ObnoxiousCoder/hit-common/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:User:ObnoxiousCoder/hit-common/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
attaš | at-ta-aš | at-ta-aš | |
zaḫḫiyauwanzi | za-aḫ-ḫi-ya-ú-wa-an-zi | za-aḫ-ḫi-ya-ú-wa-an-zi | |
wātar | wa-a-tar | wa-a-tar | |
arāš | a-ra-a-aš | a-ra-a-aš | |
alpaš | al-pa-aš | al-pa-aš | |
išḫarwanza | iš-ḫar-wa-an-za | iš-ḫar-wa-an-za | |
ēšḫar | e-eš-ḫar | e-eš-ḫar | |
ēšḫarnuzzi | e-eš-ḫar-nu-uz-zi | e-eš-ḫar-nu-uz-zi | |
ēšḫaškanza | e-eš-ḫa-aš-kán-za | e-eš-ḫa-aš-kán-za | |
alpuwaš | al-pu-wa-aš | al-pu-wa-aš | |
keššar | ke-eš-šar | ke-eš-šar | |
taḫurwailin | ta-ḫur-wa-i-li-in | ta-ḫur-wa-i-li-in | |
peran | pé-ra-an | pé-ra-an | |
pittuliyaš | pít-tu-li-ya-aš | pít-tu-li-ya-aš | |
kišat | ki-ša-at | ki-ša-at |
local hit_common = require('Module:User:ObnoxiousCoder/hit-common')
local tests = require('Module:UnitTests')
function tests:test_naive_transliteration()
local testcases = {
{"attaš", "at-ta-aš"},
{"zaḫḫiyauwanzi", "za-aḫ-ḫi-ya-ú-wa-an-zi"},
{"wātar", "wa-a-tar"},
{"arāš", "a-ra-a-aš"},
{"alpaš", "al-pa-aš"},
{"išḫarwanza", "iš-ḫar-wa-an-za"},
{"ēšḫar", "e-eš-ḫar"},
{"ēšḫarnuzzi", "e-eš-ḫar-nu-uz-zi"},
{"ēšḫaškanza", "e-eš-ḫa-aš-kán-za"},
{"alpuwaš", "al-pu-wa-aš"},
{"keššar", "ke-eš-šar"},
{"taḫurwailin", "ta-ḫur-wa-i-li-in"},
{"peran", "pé-ra-an"},
{"pittuliyaš", "pít-tu-li-ya-aš"},
{"kišat", "ki-ša-at"},
}
tests:iterate(
testcases,
function(self, input, expected)
self:equals(input, hit_common.naive_transliteration(input), expected)
end)
end
return tests