Commit c1b50365 authored by Siltaar's avatar Siltaar
Browse files

Merge branch 'master' into 'master'

add console.log

See merge request !3
parents dbbd71ef 61067f92
......@@ -33,7 +33,7 @@
"comment": "latin, greek, armenian, sinhala, georgian",
"^([ijΙygelhxğජი]|d[ij][ua]|հու)": {
"^.?[ijyouο]?[uúüūυύνeiոජූვ]+[iίgւ]?[nñνնනිნ$]([^aäվnweවාg]|e?$)": 6,
"^(.[aαāniíjոනა]|[ig]e)ւ?([aneνან]|\u0576)[^p]?" : 1,
"^(.[aαāniíjոනა]|[ig]e)ւ?([aneνან]|\u0576)([^p]|$)" : 1,
"^.?[ijyouο]?[uúüūυύνiոජූვ]+[iίygւ]?[lèλլලිლ$]([^u]|$)": 7
},
"^[mΜմමმ]": {
......
......@@ -15,6 +15,8 @@ var broken_lang = ['Abkhaz', 'Bashkir', 'Buryat', 'Cherokee', 'Chuvash', 'Erzya'
'Kalmyk', 'Lezgi', 'Moksha', 'Navajo', 'Ojibwe', 'Old English', 'Old High German',
'Old Norse', 'Tibetan', 'Udmurt', 'Uyghur', 'Veps', 'Welsh', 'Yakut',
'Yiddish', 'Zazaki', 'Sinhalese']
var multiple_lang = ['Arabic 2', 'Arabic 3', 'Arabic 4','Persan 2']
var failed_lang = []
var working_lang_nb = 0
for (let lang of langs) {
if (broken_lang.indexOf(lang) > -1)
......@@ -36,6 +38,7 @@ for (let lang of langs) {
month_nb_res = month_nb(month_name, month_nb_json)
if (!(month_nb_res == month_value)) {
console.log(`${month_name} gave ${month_nb_res} instead of ${month_value}`)
failed_lang.push(lang)
broken_lang.push(lang)
break
}
......@@ -47,7 +50,13 @@ for (let lang of langs) {
}
}
}
console.log(`Total : ${working_lang_nb + broken_lang.length} over 98`)
working_lang_nb = working_lang_nb - multiple_lang.length
console.log(`Working lang. : ${working_lang_nb}`)
console.log(`broken lang. : ${broken_lang.length}`)
console.log(broken_lang.join(', '))
console.log(`Broken lang. : ${broken_lang.length}`)
console.log(`List of broken lang : ${broken_lang.join(', ')}`)
console.log(`Failed : ${failed_lang.join(', ')}`)
var to_repair = failed_lang
to_repair.splice(to_repair.indexOf('Croatian'),1) // Croatian : _listopad_ fails to return 10 as it is 11 in Czech and Polish
to_repair.splice(to_repair.indexOf('Slovenian'),1) // Slovenian : _prosinec_ fails to return 1, as it is 12 in Croatian and Czech
console.log(`To repair : ${to_repair.join(', ')}`)
console.log(`Total : ${working_lang_nb + broken_lang.length}`)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment