Module:su-translit/testcases
- පහත දැක්වෙන උපදෙස්, Module:su-translit/testcases/documentation හි පිහිටා ඇත. Module:su-translit/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:su-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ᮃᮜᮥᮔᮺᮌᮥᮀ | alun-agung | alun-agung | ||
ᮞ᮪ᮝᮛ | swara | swara | ||
ᮍᮜᮌᮨᮔ | ngalagena | ngalagena | ||
ᮛᮛᮀᮊᮨᮔ᮪ | rarangken | rarangken | ||
[[|᮲᮰᮱᮵|#Sundanese||᮲᮰᮱᮵|]] | 2015 | 2015 | ||
ᮃᮊ᮪ᮞᮛ | aksara | aksara | ||
ᮃᮀᮊ | angka | angka | ||
ᮓᮜᮤᮀᮓᮤᮀ | dalingding | dalingding | ||
ᮃᮍᮤᮔ᮪ | angin | angin | ||
ᮌᮥᮔ᮪ᮒᮤᮀ | gunting | gunting | ||
ᮓᮓᮝᮥᮠᮔ᮪ | dadawuhan | dadawuhan | ||
ᮒᮩᮊ᮪ᮒᮩᮊ᮪ | teukteuk | teukteuk | ||
ᮃᮔᮾ | anak | anak | ||
ᮄᮊᮣᮤᮙ᮪ | iklim | iklim |
-- 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