Module:bho-Kthi-translit/testcases

-- Unit tests for Module:bho-Kthi-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local bho_translit = require('Module:bho-Kthi-translit')

--TO DO function tests:do_test_translit(bho, roman, xlit) self:equals(' ' .. bho .. ' ', bho_translit.tr(bho, 'bho', 'bho-Kthi'), roman) end

function tests:test_translit_bho local examples = { { '𑂪𑂱𑂁𑂏𑂰𑂢𑂳𑂣𑂰𑂞', 'liṅgānupāt' }, { '𑂃𑂪𑂏', 'alag' }, { '𑂄𑂧', 'ām' }, { '𑂌𑂮𑂞', 'ausat'}, { '𑂮𑂳𑂏𑂹𑂏𑂰', 'suggā' }, { '𑂮𑂳𑂏𑂢𑂰', 'sugnā' }, { '𑂍𑂒𑂩𑂮', 'kacras' }, { '𑂍𑂗𑂯𑂩', 'kaṭhar' }, { '𑂦𑂰𑂣', 'bhāp' }, {'𑂍𑂆𑂪', 'kaīl'}, {'𑂍𑂗', 'kaṭ'}, }	self:iterate(examples, 'do_test_translit') end return tests