Module:Modi-translit/testcases

-- Unit tests for Module:Modi-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local modi_translit = require('Module:Modi-translit')

--TO DO function tests:do_test_translit(modi, roman, xlit) self:equals(' ' .. modi .. ' ', modi_translit.tr(modi, 'omr', 'Modi'), roman) end

function tests:test_translit_modi local examples = { { '𑘟𑘹𑘪𑘻', 'devo' }, { '𑘤𑘲𑘕', 'bīja' }, { '𑘤𑘲𑘕𑘰𑘽', 'bījāṃ' }, { '𑘤𑘲𑘕𑘹𑘽', 'bījeṃ'}, { '𑘠𑘳𑘽', 'dhuṃ' }, { '𑘥𑘰𑘽𑘤𑘰', 'bhāṃbā' }, { '𑘁𑘮', 'āha' }, { '𑘦𑘼', 'mau' }, { '𑘡𑘚𑘜𑘹', 'naḍaṇe' }, { '𑘕𑘿𑘗𑘰𑘡𑘹𑘫𑘿𑘪𑘨', 'jñāneśvara' }, { '𑘥𑘿𑘨𑘳𑘩𑘝𑘰𑘽 𑘦𑘰𑘐𑘱𑘩𑘲𑘎𑘚𑘹𑙁 𑘦𑘎𑘰𑘨𑘰𑘓𑘹𑘽𑘓𑘱 𑘁𑘽𑘐 𑘡𑘚𑘹𑙁', 'bhrulatāṃ māgilīkaḍe. makārāceṃci āṃga naḍe.' }, { '𑘨𑘽𑘥𑘰', 'raṃbhā' }, }	self:iterate(examples, 'do_test_translit') end return tests