This is the unit-testing module for Module:su-translit.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_translit_sundanese:
Passedᮃᮜᮥᮔᮺᮌᮥᮀalun-agungalun-agung
Passedᮞ᮪ᮝᮛswaraswara
Passedᮍᮜᮌᮨᮔngalagenangalagena
Passedᮛᮛᮀᮊᮨᮔ᮪rarangkenrarangken
Passed[[|᮲᮰᮱᮵|#Sundanese||᮲᮰᮱᮵|]]20152015
Passedᮃᮊ᮪ᮞᮛaksaraaksara
Passedᮃᮀᮊangkaangka
Passedᮓᮜᮤᮀᮓᮤᮀdalingdingdalingding
Passedᮃᮍᮤᮔ᮪anginangin
Passedᮌᮥᮔ᮪ᮒᮤᮀguntinggunting
Passedᮓᮓᮝᮥᮠᮔ᮪dadawuhandadawuhan
Passedᮒᮩᮊ᮪ᮒᮩᮊ᮪teukteukteukteuk
Passedᮃᮔᮾanakanak
Passedᮄᮊᮣᮤᮙ᮪iklimiklim

-- Unit tests for [[Module:su-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local su_translit = require('Module:su-translit')

function tests:check_translit(Sund, roman)
	self:equals('<span class="Sund" lang="su">[[' .. Sund .. '#Sundanese|' .. Sund .. ']]</span>', su_translit.tr(Sund, 'su', 'Sund'), roman)
end

function tests:test_translit_sundanese()
	self:check_translit('ᮃᮜᮥᮔᮺᮌᮥᮀ', 'alun-agung')
	self:check_translit('ᮞ᮪ᮝᮛ', 'swara')
	self:check_translit('ᮍᮜᮌᮨᮔ', 'ngalagena')
	self:check_translit('ᮛᮛᮀᮊᮨᮔ᮪', 'rarangken')
	self:check_translit('|᮲᮰᮱᮵|', '2015')
	self:check_translit('ᮃᮊ᮪ᮞᮛ', 'aksara')
	self:check_translit('ᮃᮀᮊ', 'angka')
	self:check_translit('ᮓᮜᮤᮀᮓᮤᮀ', 'dalingding')
	self:check_translit('ᮃᮍᮤᮔ᮪', 'angin')
	self:check_translit('ᮌᮥᮔ᮪ᮒᮤᮀ', 'gunting')
	self:check_translit('ᮓᮓᮝᮥᮠᮔ᮪', 'dadawuhan')
	self:check_translit('ᮒᮩᮊ᮪ᮒᮩᮊ᮪', 'teukteuk')
	self:check_translit('ᮃᮔᮾ', 'anak')
	self:check_translit('ᮄᮊᮣᮤᮙ᮪', 'iklim')
end
 
return tests
"https://si.wiktionary.org/w/index.php?title=Module:su-translit/testcases&oldid=185872" වෙතින් සම්ප්‍රවේශනය කෙරිණි