All tests passed. (refresh)

Text Expected Actual
test01_uppercase_letters_in_isolation:
Passed mut.tr("А,Б,В,Г,Ґ,Д") A,B,V,H,G,D A,B,V,H,G,D
Passed mut.tr("Е,Є,Ж,З,И,І") E,Je,Zj,Z,Y,I E,Je,Zj,Z,Y,I
Passed mut.tr("Ї,Й,К,Л,М,Н") Ji,J,K,L,M,N Ji,J,K,L,M,N
Passed mut.tr("О,П,Р,С,Т,У") O,P,R,S,T,U O,P,R,S,T,U
Passed mut.tr("Ф,Х,Ц,Ч,Ш,Щ") F,Ch,Ts,Tj,Sj,Sjtj F,Ch,Ts,Tj,Sj,Sjtj
Passed mut.tr("Э,Ю,Я") E,Ju,Ja E,Ju,Ja
Text Expected Actual
test02_lowercase_letters_in_isolation:
Passed mut.tr("а,б,в,г,ґ,д") a,b,v,h,g,d a,b,v,h,g,d
Passed mut.tr("е,є,ж,з,и,і") e,je,zj,z,y,i e,je,zj,z,y,i
Passed mut.tr("ї,й,к,л,м,н") ji,j,k,l,m,n ji,j,k,l,m,n
Passed mut.tr("о,п,р,с,т,у") o,p,r,s,t,u o,p,r,s,t,u
Passed mut.tr("ф,х,ц,ч,ш,щ") f,ch,ts,tj,sj,sjtj f,ch,ts,tj,sj,sjtj
Passed mut.tr("э,ю,я") e,ju,ja e,ju,ja
Text Expected Actual
test02_special_orthographic_letters:
Passed mut.tr("Ъ,Ь") , ,
Passed mut.tr("ъ,ь") , ,
Text Expected Actual
test03_i_rather_than_j_after_s_or_t_or_z:
Passed mut.tr("сю,ся") siu,sia siu,sia
Passed mut.tr("тю,тя") tiu,tia tiu,tia
Passed mut.tr("зю,зя") ziu,zia ziu,zia
Passed mut.tr("сью,сья") siu,sia siu,sia
Passed mut.tr("тью,тья") tiu,tia tiu,tia
Passed mut.tr("зью,зья") ziu,zia ziu,zia
Passed mut.tr("Сю,Ся") Siu,Sia Siu,Sia
Passed mut.tr("Тю,Тя") Tiu,Tia Tiu,Tia
Passed mut.tr("Зю,Зя") Ziu,Zia Ziu,Zia
Passed mut.tr("Сью,Сья") Siu,Sia Siu,Sia
Passed mut.tr("Тью,Тья") Tiu,Tia Tiu,Tia
Passed mut.tr("Зью,Зья") Ziu,Zia Ziu,Zia
Text Expected Actual
test99_reference:
Passed mut.tr("Кривий Ріг") Kryvyj Rih Kryvyj Rih
Passed mut.tr("Ґалаґан") Galagan Galagan
Passed mut.tr("Миколаїв") Mykolajiv Mykolajiv
Passed mut.tr("Городище") Horodysjtje Horodysjtje
Passed mut.tr("Донецьк") Donetsk Donetsk
local t = require("Modul:UnitTests")
local mut = require("Modul:translit/uk")

function t:test01_uppercase_letters_in_isolation()
    self:equals('mut.tr("А,Б,В,Г,Ґ,Д")', mut.tr("А,Б,В,Г,Ґ,Д"), "A,B,V,H,G,D")
    self:equals('mut.tr("Е,Є,Ж,З,И,І")', mut.tr("Е,Є,Ж,З,И,І"), "E,Je,Zj,Z,Y,I")
    self:equals('mut.tr("Ї,Й,К,Л,М,Н")', mut.tr("Ї,Й,К,Л,М,Н"), "Ji,J,K,L,M,N")
    self:equals('mut.tr("О,П,Р,С,Т,У")', mut.tr("О,П,Р,С,Т,У"), "O,P,R,S,T,U")
    self:equals('mut.tr("Ф,Х,Ц,Ч,Ш,Щ")', mut.tr("Ф,Х,Ц,Ч,Ш,Щ"), "F,Ch,Ts,Tj,Sj,Sjtj")
    self:equals('mut.tr("Э,Ю,Я")', mut.tr("Э,Ю,Я"), "E,Ju,Ja")
end

function t:test02_lowercase_letters_in_isolation()
    self:equals('mut.tr("а,б,в,г,ґ,д")', mut.tr("а,б,в,г,ґ,д"), "a,b,v,h,g,d")
    self:equals('mut.tr("е,є,ж,з,и,і")', mut.tr("е,є,ж,з,и,і"), "e,je,zj,z,y,i")
    self:equals('mut.tr("ї,й,к,л,м,н")', mut.tr("ї,й,к,л,м,н"), "ji,j,k,l,m,n")
    self:equals('mut.tr("о,п,р,с,т,у")', mut.tr("о,п,р,с,т,у"), "o,p,r,s,t,u")
    self:equals('mut.tr("ф,х,ц,ч,ш,щ")', mut.tr("ф,х,ц,ч,ш,щ"), "f,ch,ts,tj,sj,sjtj")
    self:equals('mut.tr("э,ю,я")', mut.tr("э,ю,я"), "e,ju,ja")
end

function t:test02_special_orthographic_letters()
    self:equals('mut.tr("Ъ,Ь")', mut.tr("Ъ,Ь"), ",")
    self:equals('mut.tr("ъ,ь")', mut.tr("ъ,ь"), ",")
end

function t:test03_i_rather_than_j_after_s_or_t_or_z()
    self:equals('mut.tr("сю,ся")', mut.tr("сю,ся"), "siu,sia")
    self:equals('mut.tr("тю,тя")', mut.tr("тю,тя"), "tiu,tia")
    self:equals('mut.tr("зю,зя")', mut.tr("зю,зя"), "ziu,zia")
    self:equals('mut.tr("сью,сья")', mut.tr("сью,сья"), "siu,sia")
    self:equals('mut.tr("тью,тья")', mut.tr("тью,тья"), "tiu,tia")
    self:equals('mut.tr("зью,зья")', mut.tr("зью,зья"), "ziu,zia")
    self:equals('mut.tr("Сю,Ся")', mut.tr("Сю,Ся"), "Siu,Sia")
    self:equals('mut.tr("Тю,Тя")', mut.tr("Тю,Тя"), "Tiu,Tia")
    self:equals('mut.tr("Зю,Зя")', mut.tr("Зю,Зя"), "Ziu,Zia")
    self:equals('mut.tr("Сью,Сья")', mut.tr("Сью,Сья"), "Siu,Sia")
    self:equals('mut.tr("Тью,Тья")', mut.tr("Тью,Тья"), "Tiu,Tia")
    self:equals('mut.tr("Зью,Зья")', mut.tr("Зью,Зья"), "Ziu,Zia")
end

function t:test99_reference() -- de specifikt ukrainska från Svenska skrivregler
    self:equals('mut.tr("Кривий Ріг")', mut.tr("Кривий Ріг"), "Kryvyj Rih")
    self:equals('mut.tr("Ґалаґан")', mut.tr("Ґалаґан"), "Galagan")
    self:equals('mut.tr("Миколаїв")', mut.tr("Миколаїв"), "Mykolajiv")
    self:equals('mut.tr("Городище")', mut.tr("Городище"), "Horodysjtje")
    self:equals('mut.tr("Донецьк")', mut.tr("Донецьк"), "Donetsk")
end

return t