Module:Ethi-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:Ethi-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:Ethi-translit.
1 of 15 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | ስም | səm | səm | |
![]() | እንሽላሊት | ʾənšəlalit | ʾənšəlalit | |
![]() | ፎርማጆ | formaǧo | formaǧo | |
![]() | ግንደ፡ቆርቁር | gəndä ḳorḳur | gəndä ḳorḳur | |
![]() | ኢትዮጵያ | ʾityop̣ya | ʾityop̣ya | |
![]() | አዲስ፡አበባ | ʾädis ʾäbäba | ʾädis ʾäbäba | |
![]() | ዩክሬን | yukren | yukren | |
![]() | አፍጋኒስታን | ʾäfganistan | ʾäfganistan | |
![]() | አውራ፡ዶሮ | ʾäwra doro | ʾäwra doro | |
![]() | ቢራቢሮ | birabiro | birabiro | |
![]() | አንትሙ | ʾäntəmu | ʾäntəmu | |
![]() | የውሃ፡ድብ | yäwha dəb | yäwha dəb | |
![]() | ልብን | ləbn | ləbn | |
![]() | ቁጥር፡ጋር | ḳuṭr gar | ḳuṭr gar | |
![]() | አናቅይ | ʾänaḳəy | ʾänaḳy | 6 |
-- Unit tests for [[Module:Ethi-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ethi_translit = require('Module:Ethi-translit')
--TO DO
function tests:do_test_translit(ethi, roman, xlit)
self:equals('<span class="Ethi" lang="am">[[' .. ethi .. '#Ethi|' .. ethi .. ']]</span>', ethi_translit.tr(ethi, 'am', 'Ethi'), roman)
end
function tests:test_translit_ethi()
local examples = {
{ 'ስም', 'səm' },
{ 'እንሽላሊት', 'ʾənšəlalit' },
{ 'ፎርማጆ', 'formaǧo' },
{ 'ግንደ፡ቆርቁር', 'gəndä ḳorḳur' },
{ 'ኢትዮጵያ', 'ʾityop̣ya' },
{ 'አዲስ፡አበባ', 'ʾädis ʾäbäba' },
{ 'ዩክሬን', 'yukren' },
{ 'አፍጋኒስታን', 'ʾäfganistan' },
{ 'አውራ፡ዶሮ', 'ʾäwra doro' },
-- it's geminated "birrabirro" but it's not expressed graphically
{ 'ቢራቢሮ', 'birabiro' },
{ 'አንትሙ', 'ʾäntəmu'},
{ 'የውሃ፡ድብ', "yäwha dəb"}, --geminated but not expressed
{ 'ልብን', "ləbn"},
{ 'ቁጥር፡ጋር', 'ḳuṭr gar' },
{ 'አናቅይ', 'ʾänaḳəy' },
}
self:iterate(examples, 'do_test_translit')
end
return tests