This is the unit-testing module for मोड्युल:ne-translit.

4 tests failed. (refresh)

Text Expected Actual Differs at
test_translit_nepali:
Passed गर्नुभएन garnubhaena garnubhaena
Passed गरीकन garīkana garīkana
Passed गर्दछ gardacha gardacha
Passed लगाउन lagāuna lagāuna
Passed सकेन sakena sakena
Passed बसेर basera basera
Passed गईन gaīna gaīna
Passed गईन् gaīn gaīn
Passed लगाउँछ lagāũcha lagāũcha
Passed टिपनटापन ṭipanṭāpan ṭipanṭāpan
Passed संयोजक samyojak samyojak
Passed संरचना samracanā samracanā
Passed संलग्न samlagna samlagna
Passed संवाद samvād samvād
Passed संसार sansār sansār
Passed संहार saṅhār saṅhār
Passed संज्ञा saṅgyā saṅgyā
Passed सयौंको saya͠uko saya͠uko
Passed तपाईंको tapāīṃko tapāīṃko
Passed अं aṃ aṃ
Passed अंक aṅka aṅka
Passed अंचल añcal añcal
Passed अंडा aṇḍā aṇḍā
Passed अंत anta anta
Passed अंबे ambe ambe
Passed ज्ञान gyān gyān
Passed अंग्रेज़ aṅgrez aṅgrez
Passed भारतीय bhāratīya bhāratīya
Passed सय saya saya
Passed सत्य satya satya
Failed सुख sukha sukh 5
Failed आज āja āj 4
Failed गर gara gar 4
Failed तिर tira tir 4
Passed श्याम śyām śyām
Passed चीन cīn cīn
Passed कामहरू kāmharū kāmharū
Passed अर्थ artha artha
Passed हचुवा hacuwā hacuwā
Passed रक्तचाप raktacāp raktacāp
Passed आहा āhā āhā
Passed सल्लाह sallāha sallāha
Passed सलह salaha salaha
Passed अह aha aha
Passed अहँ ahã ahã
Passed प्रमेय prameya prameya
Passed गरम garam garam
Passed कस्को kasko kasko
Passed कसको kasko kasko
Passed घरको gharko gharko
Passed घरलाई gharlāī gharlāī
Passed घरमा gharmā gharmā
Passed सहरकी saharkī saharkī
Passed चर्म carma carma
Passed प्लीज़ plīz plīz
Passed ज़िनदगनम zinadganam zinadganam
Passed ज़िनदगीन zinadagīn zinadagīn
Passed ज़िनदगी zinadagī zinadagī
Passed ज़िनदग zinadag zinadag
Passed ज़िनद zinad zinad
Passed उपयोग upayog upayog
Passed ज़िन्दगी zindagī zindagī
Passed अस्पताल aspatāl aspatāl
Passed देवनागरी devanāgarī devanāgarī
Passed राम rām rām
Passed रचनरम racanaram racanaram
Passed सुलोचना sulocanā sulocanā
Passed तिरस्कार tiraskār tiraskār
Passed टमाटरम ṭamāṭaram ṭamāṭaram
Passed अनुमति anumati anumati
Passed नाइँ nāĩ nāĩ
Passed अन्तराष्ट्रिय antarāṣṭriya antarāṣṭriya
Passed अन्तर्राष्ट्रीय antarrāṣṭrīya antarrāṣṭrīya
Passed संगठन saṅgaṭhan saṅgaṭhan
Passed दुरूपयोग durūpayog durūpayog
Passed ḍha ḍha

-- Unit tests for [[मोड्युल:ne-translit]]. Refresh page to run tests.
local tests = require('मोड्युल:UnitTests')
local ne_translit = require('मोड्युल:ne-translit')-- Unit tests for [[मोड्युल:ne-translit]]. Refresh page to run tests.
local tests = require('मोड्युल:UnitTests')
local ne_translit = require('मोड्युल:ne-translit')

function tests:do_test_translit(deva, roman, comment)
	self:equals('<span class="Deva" lang="ne">[[' .. mw.ustring.gsub(deva, "%+", "") .. '#Nepali|' .. mw.ustring.gsub(deva, "%+", "") .. ']]</span>', ne_translit.tr(deva, 'ne', 'Deva'), roman, { comment = comment })
end

function tests:test_translit_nepali()
self:do_test_translit('गर्नुभएन', 'garnubhaena')
self:do_test_translit('गरीकन', 'garīkana')
self:do_test_translit('गर्दछ', 'gardacha')
self:do_test_translit('लगाउन', 'lagāuna' , "Schwa retention in certain verb forms unless the presence of halanta")
	self:do_test_translit('सकेन', 'sakena', "Schwa retention in certain verb forms")
	self:do_test_translit('बसेर', 'basera')
	self:do_test_translit('गईन', 'gaīna', "Schwa retention in certain verb forms unless the presence of halanta")
	self:do_test_translit('गईन्', 'gaīn')
	self:do_test_translit('लगाउँछ', 'lagāũcha', "Schwa retention in certain verb forms")
	self:do_test_translit('टिपनटापन', 'ṭipanṭāpan', "Combination of different words")
self:do_test_translit('संयोजक', 'samyojak')
	self:do_test_translit('संरचना', 'samracanā')
	self:do_test_translit('संलग्न', 'samlagna')
self:do_test_translit('संवाद', 'samvād')
        self:do_test_translit('संसार', 'sansār')
        self:do_test_translit('संहार', 'saṅhār')
	self:do_test_translit('संज्ञा', 'saṅgyā')
	self:do_test_translit('सयौंको', 'saya͠uko')
	self:do_test_translit('तपाईंको', 'tapāīṃko')
self:do_test_translit('अं', 'aṃ')
	self:do_test_translit('अंक', 'aṅka', "Nasal assimilation")
	self:do_test_translit('अंचल', 'añcal', "Nasal assimilation")
	self:do_test_translit('अंडा', 'aṇḍā', "Nasal assimilation")
	self:do_test_translit('अंत', 'anta', "Nasal assimilation")
	self:do_test_translit('अंबे', 'ambe', "Nasal assimilation")
	self:do_test_translit('ज्ञान', 'gyān')
	self:do_test_translit('अंग्रेज़', 'aṅgrez')
	self:do_test_translit('भारतीय', 'bhāratīya')
	self:do_test_translit('सय', 'saya')
	self:do_test_translit('सत्य', 'satya')
	self:do_test_translit('सुख', 'sukha', "Schwa retention in certain noun")
	self:do_test_translit('आज', 'āja', "Schwa retention in final syllable of certain postpositions")
self:do_test_translit('गर', 'gara', "Schwa retention in final syllable of second person imperative form of verb unless the halanta is present")
	self:do_test_translit('तिर', 'tira', "Schwa retention in final syllable of certain postpositions")
	self:do_test_translit('श्याम', 'śyām')
	self:do_test_translit('चीन', 'cīn', "No Schwa retention in non verb")
	self:do_test_translit('कामहरू', 'kāmharū', "Schwa cancellation before हरू")
	self:do_test_translit('अर्थ', 'artha', "Schwa retention when syllable is a conjuct consonant" )
	self:do_test_translit('हचुवा', 'hacuwā')
	self:do_test_translit('रक्तचाप', 'raktacāp')
	self:do_test_translit('आहा', 'āhā')
	self:do_test_translit('सल्लाह', 'sallāha')
	self:do_test_translit('सलह', 'salaha', "Schwa retention when final is ह")
	self:do_test_translit('अह', 'aha')
	self:do_test_translit('अहँ', 'ahã')
	self:do_test_translit('प्रमेय', 'prameya', "Schwa retention when final is य")
	self:do_test_translit('गरम', 'garam')
	self:do_test_translit('कस्को', 'kasko')
	self:do_test_translit('कसको', 'kasko')
	self:do_test_translit('घरको', 'gharko', "Schwa cancellation when succeeded by genitival suffix")
	self:do_test_translit('घरलाई', 'gharlāī', "Schwa cancellation when succeeded by preposition")
	self:do_test_translit('घरमा', 'gharmā')
	self:do_test_translit('सहरकी', 'saharkī')
	self:do_test_translit('चर्म', 'carma')
	self:do_test_translit('प्लीज़', 'plīz')
self:do_test_translit('ज़िनदगनम', 'zinadganam')
self:do_test_translit('ज़िनदगीन', 'zinadagīn')
    self:do_test_translit('ज़िनदगी', 'zinadagī')
    self:do_test_translit('ज़िनदग', 'zinadag')
    self:do_test_translit('ज़िनद', 'zinad')
    self:do_test_translit('उपयोग', 'upayog')
self:do_test_translit('ज़िन्दगी', 'zindagī')
	self:do_test_translit('अस्पताल', 'aspatāl')
	self:do_test_translit('देवनागरी', 'devanāgarī')
	self:do_test_translit('राम', 'rām')
    self:do_test_translit('रचनरम', 'racanaram')
	self:do_test_translit('सुलोचना', 'sulocanā')
	self:do_test_translit('तिरस्कार', 'tiraskār')
	self:do_test_translit('टमाटरम', 'ṭamāṭaram')
	self:do_test_translit('अनुमति', "anumati")
    self:do_test_translit('नाइँ', "nāĩ")
	self:do_test_translit('अन्तराष्ट्रिय', 'antarāṣṭriya')
	self:do_test_translit('अन्तर्राष्ट्रीय', 'antarrāṣṭrīya')
	self:do_test_translit('संगठन', 'saṅgaṭhan')
	self:do_test_translit('दुरूपयोग', 'durūpayog')
	self:do_test_translit('ढ', 'ḍha')
end
 
return tests