Module:Shrd-translit/testcases

-- Unit tests for Module:shrd-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local shrd_translit = require('Module:Shrd-translit')

local full_link = require('Module:links').full_link local ks = require('Module:languages').getByCode('ks')

--TO DO function tests:do_test_translit(sharada, roman) self:equals(sharada, shrd_translit.tr(sharada, 'ks', 'Shrd'), roman) end

function tests:test_translit_sharada local examples = { {'𑆮𑆳𑆑𑇀', 'vāk'}, {'𑆮𑆳𑆑', 'vāka'}, {'𑆃𑆢𑆸𑆰𑇀𑆛', 'adṛṣṭa'}, {'𑆱𑆾𑇁𑆲𑆩𑇀', 'so’ham'}, {'𑆢𑆶𑆂𑆒', 'duḥkha' }, }	self:iterate(examples, "do_test_translit") end return tests