From: mdxs Date: Mon, 6 Jan 2014 13:38:30 +0000 (+0100) Subject: Added 3-digit years to tests for GGGG and gggg formats X-Git-Tag: 2.5.1~10^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1396%2Fhead;p=thirdparty%2Fmoment.git Added 3-digit years to tests for GGGG and gggg formats --- diff --git a/test/moment/format.js b/test/moment/format.js index 7185db8b9..078b1582c 100644 --- a/test/moment/format.js +++ b/test/moment/format.js @@ -227,7 +227,9 @@ exports.format = { "2009-12-31": "2009-53", "2010-01-01": "2009-53", "2010-01-02": "2009-53", - "2010-01-03": "2009-53" + "2010-01-03": "2009-53", + "404-12-31": "0404-53", + "405-12-31": "0405-52" }, i, isoWeek, formatted2, formatted1; for (i in cases) { @@ -260,7 +262,9 @@ exports.format = { "2009-12-31": "2009-53", "2010-01-01": "2009-53", "2010-01-02": "2009-53", - "2010-01-03": "2009-53" + "2010-01-03": "2009-53", + "404-12-31": "0404-53", + "405-12-31": "0405-52" }, i, isoWeekYear, formatted5, formatted4, formatted2; for (i in cases) { @@ -294,7 +298,9 @@ exports.format = { "2009-12-31": "2009-53", "2010-01-01": "2009-53", "2010-01-02": "2009-53", - "2010-01-03": "2009-53" + "2010-01-03": "2009-53", + "404-12-31": "0404-53", + "405-12-31": "0405-52" }, i, isoWeekYear, formatted5, formatted4, formatted2; moment.lang('en-gb'); // 1, 4