Skip to content

Commit

Permalink
Fix test failures corresponding to CLDR36 update (date range format)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seonghyup committed Mar 31, 2020
1 parent 640c796 commit 0dc95a5
Show file tree
Hide file tree
Showing 11 changed files with 552 additions and 554 deletions.
80 changes: 40 additions & 40 deletions js/test/daterange/testdatefmtrange_bg_BG.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* testdatefmtrange_bg_BG.js - test the date range formatter object in Bulgarian/Bulgaria
*
*
* Copyright © 2012-2017, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -37,7 +37,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -56,14 +56,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '31.12.11 г., 13:45 ч. – 14:30 ч.');
test.equal(fmt.format(start, end), '31.12.11 г., 13:45 – 14:30');
test.done();
},
testDateRngFmtBGRangeinDayMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -82,14 +82,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '31.12.2011 г., 13:45 ч. – 14:30 ч.');
test.equal(fmt.format(start, end), '31.12.2011 г., 13:45 – 14:30');
test.done();
},
testDateRngFmtBGRangeinDayLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -108,14 +108,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '31 декември 2011 г., 13:45 ч. – 14:30 ч.');
test.equal(fmt.format(start, end), '31 декември 2011 г., 13:45 – 14:30');
test.done();
},
testDateRngFmtBGRangeinDayFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -134,15 +134,15 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '31 декември 2011 г., 13:45 ч. – 14:30 ч.');
test.equal(fmt.format(start, end), '31 декември 2011 г., 13:45 – 14:30');
test.done();
},

testDateRngFmtBGRangeNextDayShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -161,14 +161,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '30.12.11 г., 13:45 ч. – 31.12.11 г., 14:30 ч.');
test.equal(fmt.format(start, end), '30.12.11 г., 13:45 – 31.12.11 г., 14:30');
test.done();
},
testDateRngFmtBGRangeNextDayMedium: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -187,14 +187,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '30.12.2011 г., 13:45 ч. – 31.12.2011 г., 14:30 ч.');
test.equal(fmt.format(start, end), '30.12.2011 г., 13:45 – 31.12.2011 г., 14:30');
test.done();
},
testDateRngFmtBGRangeNextDayLong: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -213,14 +213,14 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '30 декември 2011 г., 13:45 ч. – 31 декември 2011 г., 14:30 ч.');
test.equal(fmt.format(start, end), '30 декември 2011 г., 13:45 – 31 декември 2011 г., 14:30');
test.done();
},
testDateRngFmtBGRangeNextDayFull: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -239,15 +239,15 @@ module.exports.testdatefmtrange_bg_BG = {
second: 0,
millisecond: 0
});
test.equal(fmt.format(start, end), '30 декември 2011 г., 13:45 ч. – 31 декември 2011 г., 14:30 ч.');
test.equal(fmt.format(start, end), '30 декември 2011 г., 13:45 – 31 декември 2011 г., 14:30');
test.done();
},

testDateRngFmtBGRangeMultiDayShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -273,7 +273,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -299,7 +299,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -325,7 +325,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 12,
Expand All @@ -347,12 +347,12 @@ module.exports.testdatefmtrange_bg_BG = {
test.equal(fmt.format(start, end), "20 – 31 декември 2011 г.");
test.done();
},

testDateRngFmtBGRangeNextMonthShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -378,7 +378,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -404,7 +404,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -430,7 +430,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -452,12 +452,12 @@ module.exports.testdatefmtrange_bg_BG = {
test.equal(fmt.format(start, end), "20 ноември – 31 декември 2011 г.");
test.done();
},

testDateRngFmtBGRangeNextYearShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -483,7 +483,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -509,7 +509,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -535,7 +535,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -557,12 +557,12 @@ module.exports.testdatefmtrange_bg_BG = {
test.equal(fmt.format(start, end), "20 ноември 2011 г. – 31 януари 2012 г.");
test.done();
},

testDateRngFmtBGRangeMultiYearShort: function(test) {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "short"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -588,7 +588,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "medium"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -614,7 +614,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "long"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -640,7 +640,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -666,7 +666,7 @@ module.exports.testdatefmtrange_bg_BG = {
test.expect(2);
var fmt = new DateRngFmt({locale: "bg-BG", length: "full"});
test.ok(fmt !== null);

var start = new GregorianDate({
year: 2011,
month: 11,
Expand All @@ -688,5 +688,5 @@ module.exports.testdatefmtrange_bg_BG = {
test.equal(fmt.format(start, end), "2011 – 2064");
test.done();
}

};
Loading

0 comments on commit 0dc95a5

Please sign in to comment.