From: Iskren Chernev Date: Wed, 7 May 2014 16:45:07 +0000 (-0700) Subject: Fix korean test label X-Git-Tag: 2.8.0~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1642%2Fhead;p=thirdparty%2Fmoment.git Fix korean test label --- diff --git a/test/lang/ar-sa.js b/test/lang/ar-sa.js index d03474d80..21a8e3652 100644 --- a/test/lang/ar-sa.js +++ b/test/lang/ar-sa.js @@ -133,8 +133,6 @@ exports["lang:ar-sa"] = { }, "from" : function (test) { - test.expect(30); - var start = moment([2007, 1, 28]); test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), "ثوان", "44 seconds = a few seconds"); test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true), "دقيقة", "45 seconds = a minute"); @@ -154,15 +152,13 @@ exports["lang:ar-sa"] = { test.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), "٢٥ أيام", "25 days = 25 days"); test.equal(start.from(moment([2007, 1, 28]).add({d: 26}), true), "شهر", "26 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 30}), true), "شهر", "30 days = a month"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 45}), true), "شهر", "45 days = a month"); + test.equal(start.from(moment([2007, 1, 28]).add({d: 43}), true), "شهر", "43 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 46}), true), "٢ أشهر", "46 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 74}), true), "٢ أشهر", "75 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 76}), true), "٣ أشهر", "76 days = 3 months"); test.equal(start.from(moment([2007, 1, 28]).add({M: 1}), true), "شهر", "1 month = a month"); test.equal(start.from(moment([2007, 1, 28]).add({M: 5}), true), "٥ أشهر", "5 months = 5 months"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 344}), true), "١١ أشهر", "344 days = 11 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 345}), true), "سنة", "345 days = a year"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 547}), true), "سنة", "547 days = a year"); test.equal(start.from(moment([2007, 1, 28]).add({d: 548}), true), "٢ سنوات", "548 days = 2 years"); test.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true), "سنة", "1 year = a year"); test.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true), "٥ سنوات", "5 years = 5 years"); diff --git a/test/lang/az.js b/test/lang/az.js index a0cdb57e3..0a3ec2a4b 100644 --- a/test/lang/az.js +++ b/test/lang/az.js @@ -147,7 +147,6 @@ exports["lang:az"] = { }, "from" : function (test) { - test.expect(30); var start = moment([2007, 1, 28]); test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), "birneçə saniyyə", "44 seconds = a few seconds"); test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true), "bir dəqiqə", "45 seconds = a minute"); @@ -167,15 +166,12 @@ exports["lang:az"] = { test.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), "25 gün", "25 days = 25 days"); test.equal(start.from(moment([2007, 1, 28]).add({d: 26}), true), "bir ay", "26 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 30}), true), "bir ay", "30 days = a month"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 45}), true), "bir ay", "45 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 46}), true), "2 ay", "46 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 74}), true), "2 ay", "75 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 76}), true), "3 ay", "76 days = 3 months"); test.equal(start.from(moment([2007, 1, 28]).add({M: 1}), true), "bir ay", "1 month = a month"); test.equal(start.from(moment([2007, 1, 28]).add({M: 5}), true), "5 ay", "5 months = 5 months"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 344}), true), "11 ay", "344 days = 11 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 345}), true), "bir il", "345 days = a year"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 547}), true), "bir il", "547 days = a year"); test.equal(start.from(moment([2007, 1, 28]).add({d: 548}), true), "2 il", "548 days = 2 years"); test.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true), "bir il", "1 year = a year"); test.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true), "5 il", "5 years = 5 years"); diff --git a/test/lang/bn.js b/test/lang/bn.js index 524735ef0..8cfea88c6 100644 --- a/test/lang/bn.js +++ b/test/lang/bn.js @@ -135,8 +135,6 @@ exports["lang:bn"] = { }, "from" : function (test) { - test.expect(30); - var start = moment([2007, 1, 28]); test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), "কএক সেকেন্ড", "44 seconds = a few seconds"); test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true), "এক মিনিট", "45 seconds = a minute"); @@ -156,15 +154,12 @@ exports["lang:bn"] = { test.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), "২৫ দিন", "25 days = 25 days"); test.equal(start.from(moment([2007, 1, 28]).add({d: 26}), true), "এক মাস", "26 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 30}), true), "এক মাস", "30 days = a month"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 45}), true), "এক মাস", "45 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 46}), true), "২ মাস", "46 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 74}), true), "২ মাস", "75 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 76}), true), "৩ মাস", "76 days = 3 months"); test.equal(start.from(moment([2007, 1, 28]).add({M: 1}), true), "এক মাস", "1 month = a month"); test.equal(start.from(moment([2007, 1, 28]).add({M: 5}), true), "৫ মাস", "5 months = 5 months"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 344}), true), "১১ মাস", "344 days = 11 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 345}), true), "এক বছর", "345 days = a year"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 547}), true), "এক বছর", "547 days = a year"); test.equal(start.from(moment([2007, 1, 28]).add({d: 548}), true), "২ বছর", "548 days = 2 years"); test.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true), "এক বছর", "1 year = a year"); test.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true), "৫ বছর", "5 years = 5 years"); diff --git a/test/lang/de-at.js b/test/lang/de-at.js index 2ab4d9694..1b3028014 100644 --- a/test/lang/de-at.js +++ b/test/lang/de-at.js @@ -138,7 +138,6 @@ exports["lang:de-at"] = { }, "from": function (test) { - test.expect(30); var start = moment([2007, 1, 28]); test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true), "ein paar Sekunden", "44 seconds = a few seconds"); test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true), "eine Minute", "45 seconds = a minute"); @@ -158,15 +157,12 @@ exports["lang:de-at"] = { test.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), "25 Tage", "25 days = 25 days"); test.equal(start.from(moment([2007, 1, 28]).add({d: 26}), true), "ein Monat", "26 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 30}), true), "ein Monat", "30 days = a month"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 45}), true), "ein Monat", "45 days = a month"); test.equal(start.from(moment([2007, 1, 28]).add({d: 46}), true), "2 Monate", "46 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 74}), true), "2 Monate", "75 days = 2 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 76}), true), "3 Monate", "76 days = 3 months"); test.equal(start.from(moment([2007, 1, 28]).add({M: 1}), true), "ein Monat", "1 month = a month"); test.equal(start.from(moment([2007, 1, 28]).add({M: 5}), true), "5 Monate", "5 months = 5 months"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 344}), true), "11 Monate", "344 days = 11 months"); test.equal(start.from(moment([2007, 1, 28]).add({d: 345}), true), "ein Jahr", "345 days = a year"); - test.equal(start.from(moment([2007, 1, 28]).add({d: 547}), true), "ein Jahr", "547 days = a year"); test.equal(start.from(moment([2007, 1, 28]).add({d: 548}), true), "2 Jahre", "548 days = 2 years"); test.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true), "ein Jahr", "1 year = a year"); test.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true), "5 Jahre", "5 years = 5 years"); diff --git a/test/lang/ko.js b/test/lang/ko.js index f59613d45..07bc491fd 100644 --- a/test/lang/ko.js +++ b/test/lang/ko.js @@ -5,7 +5,7 @@ var moment = require("../../moment"); Korean *************************************************/ -exports["lang:kr"] = { +exports["lang:ko"] = { setUp : function (cb) { moment.lang('ko'); moment.createFromInputFallback = function () {