Module:sa-Guru-translit/testcases
Appearance
- The following documentation is located at Module:sa-Guru-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:sa-Guru-translit.
1 of 3 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
ਵੇਲਾ | velā | velā | ||
ਸੁਵਰ੍ਣ | suvarṇa | suvarṇa | ||
ਅਸ਼੍ਟ | aśṭa | asa਼੍ṭa | 2 |
-- Unit tests for [[Module:sa-Guru-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local guru_translit = require('Module:sa-Guru-translit')
local full_link = require('Module:links').full_link
local sa = require('Module:languages').getByCode('sa')
--TO DO
function tests:do_test_translit(gurmukhi, roman)
self:equals(gurmukhi, guru_translit.tr(gurmukhi, 'sa', 'Guru'), roman)
end
function tests:test_translit_gurmukhi()
local examples = {
{'ਵੇਲਾ', 'velā'},
{'ਸੁਵਰ੍ਣ', 'suvarṇa'},
{'ਅਸ਼੍ਟ', 'aśṭa'},
}
self:iterate(examples, "do_test_translit")
end
return tests