]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Update tests for Polish language
authorAnd-re <andre2go@gmail.com>
Fri, 22 Nov 2013 04:54:54 +0000 (05:54 +0100)
committerAnd-re <andre2go@gmail.com>
Fri, 22 Nov 2013 04:54:54 +0000 (05:54 +0100)
test/lang/pl.js

index 93473c081525f04e029345bb7b5bab8c3a8f7235..3b2e63ee0386c34f0522c93dd7aa3a46c957ffee 100644 (file)
@@ -133,7 +133,7 @@ exports["lang:pl"] = {
     },
 
     "from" : function (test) {
-        test.expect(30);
+        test.expect(32);
 
         var start = moment([2007, 1, 28]);
         test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "kilka sekund",  "44 seconds = a few seconds");
@@ -166,6 +166,8 @@ exports["lang:pl"] = {
         test.equal(start.from(moment([2007, 1, 28]).add({d: 548}), true), "2 lata",        "548 days = 2 years");
         test.equal(start.from(moment([2007, 1, 28]).add({y: 1}), true),   "rok",           "1 year = a year");
         test.equal(start.from(moment([2007, 1, 28]).add({y: 5}), true),   "5 lat",         "5 years = 5 years");
+        test.equal(start.from(moment([2007, 1, 28]).add({y: 112}), true), "112 lat",       "112 years = 112 years");
+        test.equal(start.from(moment([2007, 1, 28]).add({y: 213}), true), "213 lat",       "213 years = 213 years");
         test.done();
     },