Jump to content

Module:tru-translit/sandbox/testcases

Wiktionary වෙතින්

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit:
Passedܐܰܕܡܐadmoadmo
Passedܐܰܒܪܐabroabro
Passedܐܰܕ݂ܢܐaḏnoaḏno
Passedܐܷܫܬܐëštoëšto
Passedܫܰܘܥܐšawcošawco
Passedܬܡܰܢܝܐtmanyotmanyo
Passedܬܷܫܥܐtëšcotëšco
Passedܚܰܡܫܐḥamšoḥamšo
Passedܐܰܪܒܥܐarbcoarbco
Passedܬܠܳܬ݂ܐtloṯotloṯo
Passedܬܪܶܐtretre
Passedܚܰܐḥaḥa
Passedܬܡܝܢܳܝܐtminoyotminoyo
Passedܕܰܬ ܬܡܰܢܝܐdat tmanyodat tmanyo
Passedܬܡܳܢܰܥܣܰܪtmonacsartmonacsar
Passedܐܰܕܥܰܨܪܝـܝܶܐadcaṣriyeadcaṣriye
Passedܐܰܕܠܰܠܝܐadlalyoadlalyo
Passedܐܰܕܨܰܦܪܐadṣafroadṣafro
Passedܐܰܕܝܰܘܡܰܐadyawmaadyawma
Passedܐܰܬ݂ܡܷܠaṯmëlaṯmël
Passedܐܰܬ݂ܝܳܢܐaṯyonoaṯyono
Passedܐܰܙܙܝazziazzi
Passedܒܰܛܝܠܶܐ ܢܶܐbaṭile nebaṭile ne
Passedܒܢܳܝܐbnoyobnoyo
Passedܕܰܪܓ݂ܶܐdarġedarġe
Passedܕܘܥܪܝܢܰܐducrinaducrina
Passedܕܘܪܳܫܶܐ ܓܘܫܡܳܢܳܝܶܐduroše gušmonoyeduroše gušmonoye
Passedܦܰܠܩܐfalqofalqo
Passedܠܰܫܰܢlašanlašan
Passedܡܶܐ ܙܰܒܢܐ ܠܙܰܒܢܐme zabno lzabnome zabno lzabno
Passedܩܷܛܪܐqëṭroqëṭro
Passedܣܚܳܝܐsḥoyosḥoyo
Passedܬܰܡܐtamotamo
Passedܘܰܥܕܐwacdowacdo
Passedܙܰܒܢܐzabnozabno
Passedܢܚܝܪܐnḥironḥiro
Passedܢܳܫܐnošonošo
Passedܪܝܫܐrišorišo
Passedܫܰܒܬ݂ܐšabṯošabṯo
Passedܐܘܥܕܐucdoucdo
Passedܘܳܠܝܬ݂ܐwoliṯowoliṯo
Passedܙܥܘܪܐzcurozcuro
Passedܙܥܘܪܬܐzcurtozcurto
Passedܕܰܫܷܫܬܐdašëštodašëšto
Passedܥܷܢܘܶܐcënwecënwe
Passedܨܷܪܬܐṣërtoṣërto
Passedܘܰܟ݂ܰܡwaxamwaxam
Passedܙܷܒܕܐzëbdozëbdo
Passedܐܰܝ ܝܰܘܡܰܢܝay yawmaniay yawmani

local tests = require("Module:UnitTests")
local translit = require("Module:tru-translit/sandbox")

local full_link = require("Module:links").full_link
local lang = require("Module:languages").getByCode("tru")

local function link(word)
	return full_link{ term = word, lang = lang, tr = "-" }
end

function tests:do_test_translit(word, expected)
	self:equals(link(word), translit.tr(word, lang , "Syrc"), expected)
end

function tests:test_translit()
	local examples = {
		{ "ܐܰܕܡܐ", "admo" },
		{ "ܐܰܒܪܐ", "abro" },
		{ "ܐܰܕ݂ܢܐ", "aḏno" },
		{ "ܐܷܫܬܐ", "ëšto"},
		{ "ܫܰܘܥܐ", "šawco"},
		{ "ܬܡܰܢܝܐ", "tmanyo"},
		{ "ܬܷܫܥܐ", "tëšco"},
		{ "ܚܰܡܫܐ", "ḥamšo"},
		{ "ܐܰܪܒܥܐ", "arbco"},
		{ "ܬܠܳܬ݂ܐ", "tloṯo"},
		{ "ܬܪܶܐ", "tre"},
		{ "ܚܰܐ", "ḥa"},
		{ "ܬܡܝܢܳܝܐ", "tminoyo"},
		{ "ܕܰܬ ܬܡܰܢܝܐ", "dat tmanyo"},
		{ "ܬܡܳܢܰܥܣܰܪ", "tmonacsar"},
		{ "ܐܰܕܥܰܨܪܝـܝܶܐ", "adcaṣriye"},
		{ "ܐܰܕܠܰܠܝܐ", "adlalyo"},
		{ "ܐܰܕܨܰܦܪܐ", "adṣafro"},
		{ "ܐܰܕܝܰܘܡܰܐ", "adyawma"},
		{ "ܐܰܬ݂ܡܷܠ", "aṯmël"},
		{ "ܐܰܬ݂ܝܳܢܐ", "aṯyono"},
		{ "ܐܰܙܙܝ", "azzi"},
		{ "ܒܰܛܝܠܶܐ ܢܶܐ", "baṭile ne"},
		{ "ܒܢܳܝܐ", "bnoyo"},
		{ "ܕܰܪܓ݂ܶܐ", "darġe"},
		{ "ܕܘܥܪܝܢܰܐ", "ducrina" },
		{ "ܕܘܪܳܫܶܐ ܓܘܫܡܳܢܳܝܶܐ", "duroše gušmonoye" },
		{ "ܦܰܠܩܐ", "falqo" },
		{ "ܠܰܫܰܢ", "lašan"},
		{ "ܡܶܐ ܙܰܒܢܐ ܠܙܰܒܢܐ", "me zabno lzabno"},
		{ "ܩܷܛܪܐ", "qëṭro"},
		{ "ܣܚܳܝܐ", "sḥoyo"},
		{ "ܬܰܡܐ", "tamo"},
		{ "ܘܰܥܕܐ", "wacdo"},
		{ "ܙܰܒܢܐ", "zabno"},
		{ "ܢܚܝܪܐ", "nḥiro"},
		{ "ܢܳܫܐ", "nošo"},
		{ "ܪܝܫܐ", "rišo"},
		{ "ܫܰܒܬ݂ܐ", "šabṯo"},
		{ "ܐܘܥܕܐ", "ucdo"},
		{ "ܘܳܠܝܬ݂ܐ", "woliṯo"},
		{ "ܙܥܘܪܐ", "zcuro"},
		{ "ܙܥܘܪܬܐ", "zcurto"},
		{ "ܕܰܫܷܫܬܐ", "dašëšto"},
		{ "ܥܷܢܘܶܐ", "cënwe"},
		{ "ܨܷܪܬܐ", "ṣërto"},
		{ "ܘܰܟ݂ܰܡ", "waxam"},
		{ "ܙܷܒܕܐ", "zëbdo"},
		{ "ܐܰܝ ܝܰܘܡܰܢܝ", "ay yawmani"}
	}
	
	self:iterate(examples, "do_test_translit")
end
 
return tests
"https://si.wiktionary.org/w/index.php?title=Module:tru-translit/sandbox/testcases&oldid=163826" වෙතින් සම්ප්‍රවේශනය කෙරිණි