Skip to content

Commit

Permalink
Merge pull request #230 from iLib-js/support-ka-GE
Browse files Browse the repository at this point in the history
Added test cases to verify ka-GE locale support
  • Loading branch information
gouniLee authored Mar 6, 2020
2 parents 45ff4e5 + c466566 commit 381f665
Show file tree
Hide file tree
Showing 25 changed files with 3,276 additions and 39 deletions.
4 changes: 2 additions & 2 deletions js/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ limitations under the License.
<property name="nm.bin" value="${build.base}/../node_modules/.bin"/>
<property name="jar.ilib" value="ilib.jar"/>
<property name="locales.default" value="en-AU,en-CA,en-GB,en-IN,en-NG,en-PH,en-PK,en-SG,en-US,en-ZA,de-DE,fr-CA,fr-FR,es-AR,es-ES,es-MX,id-ID,it-IT,ja-JP,ko-KR,pt-BR,ru-RU,tr-TR,vi-VN,zxx-XX,zh-Hans-CN,zh-Hant-HK,zh-Hant-TW,zh-Hans-SG"/>
<property name="locales.unittest" value="aa-DJ,af-NA,agq-CM,ak-GH,am-ET,ar-AE,ar-BH,ar-DJ,ar-DZ,ar-EG,ar-IQ,ar-JO,ar-KW,ar-LB,ar-LY,ar-MA,ar-MR,ar-OM,ar-QA,ar-SA,ar-SD,ar-SY,ar-TN,ar-YE,asa-TZ,as-IN,az-Latn-AZ,bas-CM,be-BY,bem-ZM,bg-BG,bh-IN,bm-ML,bn-IN,br-FR,bs-BS,bs-Cyrl-BA,bs-Latn-BA,bs-ME,ca-FR,cop-EG,cs-CZ,da-DK,de-AT,de-CH,de-DE,el-GR,en-AM,en-AU,en-CA,en-ET,en-GB,en-GH,en-GM,en-HK,en-IE,en-IN,en-IS,en-KE,en-LK,en-LR,en-MW,en-MY,en-NG,en-NZ,en-PA,en-PH,en-PK,en-PR,en-RW,en-SD,en-SG,en-SL,en-TZ,en-UG,en-US,en-ZA,en-ZM,es-AR,es-BO,es-CL,es-CO,es-CR,es-DO,es-EC,es-ES,es-GQ,es-GT,es-HN,es-MX,es-NI,es-PA,es-PE,es-PH,es-PR,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ml-IN,mn-CN,mr-IN,ms-BN,ms-MY,nb-NO,ne-IN,nl-BE,nl-CW,nl-GF,nl-NL,nl-SR,no-BV,no-NO,no-SJ,om-ET,or-IN,os-RU,pa-Arab-PK,pl-PL,pt-AO,pt-BR,pt-CV,pt-GW,pt-MO,pt-MZ,pt-PT,pt-ST,pt-TL,ro-RO,ro-RS,ru-KG,ru-KZ,ru-RU,ru-TM,si-LK,sk-SK,sl-SI,so-ET,so-SO,sq-AL,sq-ME,sq-MK,sr-Cyrl-BA,sr-Latn-BA,sr-Latn-ME,sr-Latn-RS,sr-RS,ss-ZA,st-LS,sv-FI,sv-SE,sw-UG,ta-LK,ta-MY,ta-SG,te-IN,th-TH,tr-TR,tr-CY,uk-UA,ur-IN,ur-PK,uz-AF,uz-Arab-AF,uz-Cyrl-UZ,uz-Latn-UZ,vai-Latn-LR,vi-VN,zh-Hans-CN,zh-Hans-MO,zh-Hans-MY,zh-Hans-SG,zh-Hant-HK,zh-Hant-TW,zh-Hant-US,zu-ZA,zxx-Cyrl-XX,zxx-Hans-XX,zxx-Hebr-XX,zxx-XX"/>
<property name="keep.these.comments" value="/(\!data|\!loadLocaleData|\!defineLocaleData|\!macro|eslint-)/"/>

<!-- =================================================================== -->
Expand Down
12 changes: 11 additions & 1 deletion js/test/date/testDayOfWeek.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testWeekDate.js - test the weekdata information
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1954,6 +1954,16 @@ module.exports.testweekdata = {
var info = new LocaleInfo("zh-Hans-MY");
test.ok(info !== null);

test.equal(info.getFirstDayOfWeek(), 1);
test.equal(info.getWeekEndStart(), 6);
test.equal(info.getWeekEndEnd(), 0);
test.done();
},
testWeekData_ka_GE: function(test) {
test.expect(4);
var info = new LocaleInfo("ka-GE");
test.ok(info !== null);

test.equal(info.getFirstDayOfWeek(), 1);
test.equal(info.getWeekEndStart(), 6);
test.equal(info.getWeekEndEnd(), 0);
Expand Down
16 changes: 13 additions & 3 deletions js/test/date/testMeridiems.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testMeridiems.js - test the meridiems data
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1961,7 +1961,17 @@ module.exports.testmeridiems = {

test.equal(fmt[0].name, "上午");
test.equal(fmt[1].name, "下午");


test.done();
},
testMeridiem_ka_GE: function(test) {
test.expect(3);
var fmt = DateFmt.getMeridiemsRange({locale:"ka-GE"});
test.ok(fmt !== null);

test.equal(fmt[0].name, "AM");
test.equal(fmt[1].name, "PM");

test.done();
}
}
}
47 changes: 46 additions & 1 deletion js/test/date/testMonthTranslation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testMonthTranslation.js - test the month's translation
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -7270,6 +7270,51 @@ module.exports.testmonthtranslation = {
test.equal(value[10], "11月");
test.equal(value[11], "12月");

test.done();
},
testMonthTranslate_ka_GE: function(test) {
test.expect(24);

// full, long: MMMM
// medium: MMM
// short: MM

var value = [], i;
var fmt = new DateFmt({locale:"ka-GE", date:"m", length: "full", useNative:false, timezone:"local"})
for (i=0; i < 12; i++) {
value[i] = fmt.format(DateFactory({month:i+1, type:"gregorian"}));
}
test.equal(value[0], "იანვარი");
test.equal(value[1], "თებერვალი");
test.equal(value[2], "მარტი");
test.equal(value[3], "აპრილი");
test.equal(value[4], "მაისი");
test.equal(value[5], "ივნისი");
test.equal(value[6], "ივლისი");
test.equal(value[7], "აგვისტო");
test.equal(value[8], "სექტემბერი");
test.equal(value[9], "ოქტომბერი");
test.equal(value[10], "ნოემბერი");
test.equal(value[11], "დეკემბერი");

var fmt = new DateFmt({locale:"ka-GE", date:"m", length: "medium", useNative:false, timezone:"local"})
for (i=0; i < 12; i++) {
value[i] = fmt.format(DateFactory({month:i+1, type:"gregorian"}));
}

test.equal(value[0], "იან");
test.equal(value[1], "თებ");
test.equal(value[2], "მარ");
test.equal(value[3], "აპრ");
test.equal(value[4], "მაი");
test.equal(value[5], "ივნ");
test.equal(value[6], "ივლ");
test.equal(value[7], "აგვ");
test.equal(value[8], "სექ");
test.equal(value[9], "ოქტ");
test.equal(value[10], "ნოე");
test.equal(value[11], "დეკ");

test.done();
}
}
1 change: 1 addition & 0 deletions js/test/date/testSuite.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<script src="testdatefmt_id_ID.js"></script>
<script src="testdatefmt_it_IT.js"></script>
<script src="testdatefmt_ja_JP.js"></script>
<script src="testdatefmt_ka_GE.js"></script>
<script src="testdatefmt_kk_Cyrl_KZ.js"></script>
<script src="testdatefmt_km_KH.js"></script>
<script src="testdatefmt_kn_IN.js"></script>
Expand Down
5 changes: 3 additions & 2 deletions js/test/date/testSuiteFiles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testSuiteFiles.js - list the test files in this directory
*
* Copyright © 2017-2018, JEDLSoft
* Copyright © 2017-2018,2020 JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -65,6 +65,7 @@ module.exports.files = [
"testdatefmt_id_ID.js",
"testdatefmt_it_IT.js",
"testdatefmt_ja_JP.js",
"testdatefmt_ka_GE.js",
"testdatefmt_kk_Cyrl_KZ.js",
"testdatefmt_km_KH.js",
"testdatefmt_kn_IN.js",
Expand Down Expand Up @@ -104,4 +105,4 @@ module.exports.files = [
"testdatefmt_zh_CN.js",
"testdatefmt_zh_Hant_HK.js",
"testdatefmt_zh_Hant_TW.js"
];
];
75 changes: 73 additions & 2 deletions js/test/date/testWeekdayTranslation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testWeekdayTranslation.js
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -11151,6 +11151,77 @@ module.exports.testWeekdayTranslation = {
test.equal(value[5], "五");
test.equal(value[6], "六");

test.done();
},
testWeekdayTranslationFull_ka_GE: function(test) {
// full -> wide
test.expect(7);
var fmt, value = [], i;
fmt = new DateFmt({locale:"ka-GE", date:"w", length: "full", useNative:false, timezone:"local"})
for (i=0; i < 7; i++) {
value[i] = fmt.format(DateFactory({year: 2015, month: 8, day:i+2, type:"gregorian"}));
}
test.equal(value[0], "კვირა");
test.equal(value[1], "ორშაბათი");
test.equal(value[2], "სამშაბათი");
test.equal(value[3], "ოთხშაბათი");
test.equal(value[4], "ხუთშაბათი");
test.equal(value[5], "პარასკევი");
test.equal(value[6], "შაბათი");
test.done();
},
testWeekdayTranslationLong_ka_GE: function(test) {
// long -> abbreviate
test.expect(7);
var fmt, value = [], i;
fmt = new DateFmt({locale:"ka-GE", date:"w", length: "long", useNative:false, timezone:"local"})
for (i=0; i < 7; i++) {
value[i] = fmt.format(DateFactory({year: 2015, month: 8, day:i+2, type:"gregorian"}));
}
test.equal(value[0], "კვი");
test.equal(value[1], "ორშ");
test.equal(value[2], "სამ");
test.equal(value[3], "ოთხ");
test.equal(value[4], "ხუთ");
test.equal(value[5], "პარ");
test.equal(value[6], "შაბ");

test.done();
},
testWeekdayTranslationMedium_ka_GE: function(test) {
// medium -> short
test.expect(7);
var fmt, value = [], i;
fmt = new DateFmt({locale:"ka-GE", date:"w", length: "medium", useNative:false, timezone:"local"})
for (i=0; i < 7; i++) {
value[i] = fmt.format(DateFactory({year: 2015, month: 8, day:i+2, type:"gregorian"}));
}
test.equal(value[0], "კვ");
test.equal(value[1], "ორ");
test.equal(value[2], "სმ");
test.equal(value[3], "ოთ");
test.equal(value[4], "ხთ");
test.equal(value[5], "პრ");
test.equal(value[6], "შბ");

test.done();
},
testWeekdayTranslationShort_ka_GE: function(test) {
// short: narrow
test.expect(7);
var fmt, value = [], i;
fmt = new DateFmt({locale:"ka-GE", date:"w", length: "short", useNative:false, timezone:"local"})
for (i=0; i < 7; i++) {
value[i] = fmt.format(DateFactory({year: 2015, month: 8, day:i+2, type:"gregorian"}));
}
test.equal(value[0], "კ");
test.equal(value[1], "ო");
test.equal(value[2], "ს");
test.equal(value[3], "ო");
test.equal(value[4], "ხ");
test.equal(value[5], "პ");
test.equal(value[6], "შ");

test.done();
}
}
}
14 changes: 11 additions & 3 deletions js/test/date/testcalendar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testcalendar.js - test the calendar support per locale
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,7 @@ if (typeof(LocaleInfo) === "undefined") {

module.exports.testcalendar = {
testDefaultCalendar_GregorianCaseAll: function(test) {
test.expect(192);
test.expect(193);
var localeList = ["ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR",
"ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-YE","as-IN","az-Latn-AZ","bg-BG","bn-IN","bs-Latn-BA,bs-Latn-ME",
"cs-CZ","da-DK","de-AT","de-CH","de-DE","de-LU","et-EE","el-CY","el-GR","en-AM","en-AU","en-AZ","en-CA","en-GB","en-GH",
Expand All @@ -32,7 +32,7 @@ module.exports.testcalendar = {
"es-CL","es-CO","es-CR","es-DO","es-EC","es-ES","es-GQ","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR",
"es-PY","es-SV","es-US","es-UY","es-VE","fi-FI","fr-BE","fr-BF","fr-BJ","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI",
"fr-CM","fr-GQ","fr-DJ","fr-DZ","fr-FR","fr-GA","fr-GN","fr-LB","fr-LU","fr-ML","fr-RW","fr-SN","fr-TG","ga-IE","gu-IN",
"he-IL","hi-IN","hi-SG","hr-HR","hr-ME","hu-HU","id-ID","is-IS","it-CH","it-IT","ja-JP","kk-Cyrl-KZ","km-KH","kn-IN",
"he-IL","hi-IN","hi-SG","hr-HR","hr-ME","hu-HU","id-ID","is-IS","it-CH","it-IT","ja-JP","ka-GE","kk-Cyrl-KZ","km-KH","kn-IN",
"ko-KR","ku-Arab-IQ","lt-LT","lv-LV","mk-MK","ml-IN","mn-Cyrl-MN","mr-IN","ms-MY","ms-SG","nb-NO","nl-BE","nl-NL","pa-IN",
"pa-PK","pl-PL","pt-AO","pt-BR","pt-GQ","pt-CV","pt-PT","ro-RO","ru-BY","ru-GE","ru-KG","ru-KZ","ru-RU","ru-UA","si-LK",
"sk-SK","sl-SI","sq-AL","sq-ME","sr-Latn-ME","sr-Latn-RS","sv-FI","sv-SE","sw-KE","ta-IN","ta-SG","te-IN","tr-AM","tr-AZ",
Expand All @@ -54,6 +54,14 @@ module.exports.testcalendar = {

test.done();
},
testDefaultCalendar_ka_IR: function(test) {
test.expect(2);
var info = new LocaleInfo("ka-IR");
test.ok(info !== null);
test.equal(info.getCalendar(), "persian");

test.done();
},
testDefaultCalendar_fa_AF: function(test) {
test.expect(2);
var info = new LocaleInfo("fa-AF");
Expand Down
11 changes: 10 additions & 1 deletion js/test/date/testclock.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* testclock.js - test the 12/24 hour support amongst various locales
*
* Copyright © 2019, JEDLSoft
* Copyright © 2019-2020, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1764,6 +1764,15 @@ module.exports.testclock = {

test.equal(info.getClock(), 12);

test.done();
},
testClock_ka_GE: function(test) {
test.expect(2);
var info = new LocaleInfo("ka-GE");
test.ok(info !== null);

test.equal(info.getClock(), 24);

test.done();
}
}
Loading

0 comments on commit 381f665

Please sign in to comment.