Modul:translit/got/test
< Modul:translit | got
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
mut.tr("𐌰,𐌱,𐌲,𐌳,𐌴") | a,b,g,d,e | a,b,g,d,e | |
mut.tr("𐌵,𐌶,𐌷,𐌸,𐌹,𐌺") | q,z,h,þ,i,k | q,z,h,þ,i,k | |
mut.tr("𐌻,𐌼,𐌽,𐌾,𐌿,𐍀") | l,m,n,j,u,p | l,m,n,j,u,p | |
mut.tr("𐍁,𐍂,𐍃,𐍄,𐍅") | ?,r,s,t,w | ?,r,s,t,w | |
mut.tr("𐍆,𐍇,𐍈,𐍉,𐍊") | f,x,ƕ,o,? | f,x,ƕ,o,? |
Text | Expected | Actual | |
---|---|---|---|
mut.tr("𐌰𐍄𐍄𐌰 𐌿𐌽𐍃𐌰𐍂, 𐌸𐌿 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰𐌼,") | atta unsar, þu in himinam, | atta unsar, þu in himinam, | |
mut.tr("𐍅𐌴𐌹𐌷𐌽𐌰𐌹 𐌽𐌰𐌼𐍉 𐌸𐌴𐌹𐌽,") | weihnai namo þein, | weihnai namo þein, | |
mut.tr("𐌵𐌹𐌼𐌰𐌹 𐌸𐌹𐌿𐌳𐌹𐌽𐌰𐍃𐍃𐌿𐍃 𐌸𐌴𐌹𐌽𐍃,") | qimai þiudinassus þeins, | qimai þiudinassus þeins, | |
mut.tr("𐍅𐌰𐌹𐍂𐌸𐌰𐌹 𐍅𐌹𐌻𐌾𐌰 𐌸𐌴𐌹𐌽𐍃,") | wairþai wilja þeins, | wairþai wilja þeins, | |
mut.tr("𐍃𐍅𐌴 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰 𐌾𐌰𐌷 𐌰𐌽𐌰 𐌰𐌹𐍂𐌸𐌰𐌹.") | swe in himina jah ana airþai. | swe in himina jah ana airþai. |
local t = require("Modul:UnitTests")
local mut = require("Modul:translit/got")
function t:test1_letters()
self:equals('mut.tr("𐌰,𐌱,𐌲,𐌳,𐌴")', mut.tr("𐌰,𐌱,𐌲,𐌳,𐌴"), "a,b,g,d,e")
self:equals('mut.tr("𐌵,𐌶,𐌷,𐌸,𐌹,𐌺")', mut.tr("𐌵,𐌶,𐌷,𐌸,𐌹,𐌺"), "q,z,h,þ,i,k")
self:equals('mut.tr("𐌻,𐌼,𐌽,𐌾,𐌿,𐍀")', mut.tr("𐌻,𐌼,𐌽,𐌾,𐌿,𐍀"), "l,m,n,j,u,p")
self:equals('mut.tr("𐍁,𐍂,𐍃,𐍄,𐍅")', mut.tr("𐍁,𐍂,𐍃,𐍄,𐍅"), "?,r,s,t,w")
self:equals('mut.tr("𐍆,𐍇,𐍈,𐍉,𐍊")', mut.tr("𐍆,𐍇,𐍈,𐍉,𐍊"), "f,x,ƕ,o,?")
end
function t:test99_Oedipus_Rex() -- rad 1182–1185 från tragedin "Oedipus Rex" av Sofokles
self:equals('mut.tr("𐌰𐍄𐍄𐌰 𐌿𐌽𐍃𐌰𐍂, 𐌸𐌿 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰𐌼,")', mut.tr("𐌰𐍄𐍄𐌰 𐌿𐌽𐍃𐌰𐍂, 𐌸𐌿 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰𐌼,"), "atta unsar, þu in himinam,")
self:equals('mut.tr("𐍅𐌴𐌹𐌷𐌽𐌰𐌹 𐌽𐌰𐌼𐍉 𐌸𐌴𐌹𐌽,")', mut.tr("𐍅𐌴𐌹𐌷𐌽𐌰𐌹 𐌽𐌰𐌼𐍉 𐌸𐌴𐌹𐌽,"), "weihnai namo þein,")
self:equals('mut.tr("𐌵𐌹𐌼𐌰𐌹 𐌸𐌹𐌿𐌳𐌹𐌽𐌰𐍃𐍃𐌿𐍃 𐌸𐌴𐌹𐌽𐍃,")', mut.tr("𐌵𐌹𐌼𐌰𐌹 𐌸𐌹𐌿𐌳𐌹𐌽𐌰𐍃𐍃𐌿𐍃 𐌸𐌴𐌹𐌽𐍃,"), "qimai þiudinassus þeins,")
self:equals('mut.tr("𐍅𐌰𐌹𐍂𐌸𐌰𐌹 𐍅𐌹𐌻𐌾𐌰 𐌸𐌴𐌹𐌽𐍃,")', mut.tr("𐍅𐌰𐌹𐍂𐌸𐌰𐌹 𐍅𐌹𐌻𐌾𐌰 𐌸𐌴𐌹𐌽𐍃,"), "wairþai wilja þeins,")
self:equals('mut.tr("𐍃𐍅𐌴 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰 𐌾𐌰𐌷 𐌰𐌽𐌰 𐌰𐌹𐍂𐌸𐌰𐌹.")', mut.tr("𐍃𐍅𐌴 𐌹𐌽 𐌷𐌹𐌼𐌹𐌽𐌰 𐌾𐌰𐌷 𐌰𐌽𐌰 𐌰𐌹𐍂𐌸𐌰𐌹."), "swe in himina jah ana airþai.")
end
return t