मोड्युल:ne-translit/testcases
स्वरूप
This is the unit-testing module for मोड्युल:ne-translit.
76 tests failed. (refresh)
| Text | Expected | Actual | Differs at | |
|---|---|---|---|---|
| गर्नुभएन | garnubhaena | ɡʌrnubʌenʌ | 1 | |
| गरीकन | garīkana | ɡʌɾikʌnʌ | 1 | |
| गर्दछ | gardacha | ɡʌrd̪ʌʦʰ | 1 | |
| लगाउन | lagāuna | lʌɡäunʌ | 2 | |
| सकेन | sakena | sʌkenʌ | 2 | |
| बसेर | basera | bʌseɾʌ | 2 | |
| गईन | gaīna | ɡʌinʌ | 1 | |
| गईन् | gaīn | ɡʌin | 1 | |
| लगाउँछ | lagāũcha | lʌɡäũʦʰʌ | 2 | |
| टिपनटापन | ṭipanṭāpan | ʈipʌnʌʈäpʌn | 1 | |
| संयोजक | samyojak | sʌmjoʣʌk | 2 | |
| संरचना | samracanā | sʌmrʌʦʌnä | 2 | |
| संलग्न | samlagna | sʌ̃lʌɡnʌ | 2 | |
| संवाद | samvād | sʌmbäd̪ | 2 | |
| संसार | sansār | sʌnsär | 2 | |
| संहार | saṅhār | sʌŋɦär | 2 | |
| संज्ञा | saṅgyā | sʌŋɡjä | 2 | |
| सयौंको | saya͠uko | sʌjʌu̯ŋko | 2 | |
| तपाईंको | tapāīṃko | t̪ʌpäiŋko | 2 | |
| अं | aṃ | ʌ̃ | 1 | |
| अंक | aṅka | ʌŋkʌ | 1 | |
| अंचल | añcal | ʌnʦʌl | 1 | |
| अंडा | aṇḍā | ʌɳɖä | 1 | |
| अंत | anta | ʌn̪t̪ʌ | 1 | |
| अंबे | ambe | ʌmbe | 1 | |
| ज्ञान | gyān | ɡjän | 1 | |
| अंग्रेज़ | aṅgrez | ʌŋɡrez | 1 | |
| भारतीय | bhāratīya | bʱäɾʌt̪ijʌ | 2 | |
| सय | saya | sʌjʌ | 2 | |
| सत्य | satya | sʌtt̪e | 2 | |
| सुख | sukha | sukʰ | 4 | |
| आज | āja | äʣ | 1 | |
| गर | gara | ɡʌr | 1 | |
| तिर | tira | t̪ir | 2 | |
| श्याम | śyām | sjäm | 1 | |
| चीन | cīn | ʦin | 1 | |
| कामहरू | kāmharū | kämʌɦʌɾu | 2 | |
| अर्थ | artha | ʌrt̪ʰʌ | 1 | |
| हचुवा | hacuwā | ɦʌʦuwä | 1 | |
| रक्तचाप | raktacāp | rʌkt̪ʌʦäp | 2 | |
| आहा | āhā | ä̤ː | 1 | |
| सल्लाह | sallāha | sʌllä̤ː | 2 | |
| सलह | salaha | sʌlʌɦʌ | 2 | |
| अह | aha | ʌɦʌ | 1 | |
| अहँ | ahã | ʌɦʌ̃ | 1 | |
| प्रमेय | prameya | prʌmejʌ | 3 | |
| गरम | garam | ɡʌɾʌm | 1 | |
| कस्को | kasko | kʌsko | 2 | |
| कसको | kasko | kʌsʌko | 2 | |
| घरको | gharko | ɡʱʌɾʌko | 1 | |
| घरलाई | gharlāī | ɡʱʌɾʌläi | 1 | |
| घरमा | gharmā | ɡʱʌɾʌmä | 1 | |
| सहरकी | saharkī | sʌ̤ːɾʌki | 2 | |
| चर्म | carma | ʦʌrmʌ | 1 | |
| प्लीज़ | plīz | pliz | 3 | |
| ज़िनदगनम | zinadganam | zinʌd̪ʌɡʌnʌm | 4 | |
| ज़िनदगीन | zinadagīn | zinʌd̪ʌɡin | 4 | |
| ज़िनदगी | zinadagī | zinʌd̪ʌɡi | 4 | |
| ज़िनदग | zinadag | zinʌd̪ʌɡ | 4 | |
| ज़िनद | zinad | zinʌd̪ | 4 | |
| उपयोग | upayog | upʌjoɡ | 3 | |
| ज़िन्दगी | zindagī | zin̪d̪ʌɡi | 4 | |
| अस्पताल | aspatāl | ʌspʌt̪äl | 1 | |
| देवनागरी | devanāgarī | d̪ebʌnäɡʌɾi | 2 | |
| राम | rām | räm | 2 | |
| रचनरम | racanaram | rʌʦʌnʌɾʌm | 2 | |
| सुलोचना | sulocanā | suloʦʌnä | 5 | |
| तिरस्कार | tiraskār | t̪iɾʌskär | 2 | |
| टमाटरम | ṭamāṭaram | ʈʌmäʈʌɾʌm | 1 | |
| अनुमति | anumati | ʌnumʌt̪i | 1 | |
| नाइँ | nāĩ | näĩ | 2 | |
| अन्तराष्ट्रिय | antarāṣṭriya | ʌn̪t̪ʌɾäsʈrijʌ | 1 | |
| अन्तर्राष्ट्रीय | antarrāṣṭrīya | ʌn̪t̪ʌrräsʈrijʌ | 1 | |
| संगठन | saṅgaṭhan | sʌŋɡʌʈʰʌn | 2 | |
| दुरूपयोग | durūpayog | d̪uɾupʌjoɡ | 2 | |
| ढ | ḍha | ɖʱʌ | 1 |
-- 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