]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding another 2 unit tests for #74
authorTim Wood <washwithcare@gmail.com>
Mon, 28 Nov 2011 18:08:10 +0000 (10:08 -0800)
committerTim Wood <washwithcare@gmail.com>
Mon, 28 Nov 2011 18:08:10 +0000 (10:08 -0800)
sitesrc/js/unit-tests.js

index 2f2c40ebb521a37659ca60894422c29723353732..33da1392f4704c7c7d96fb020d0605826e36641e 100755 (executable)
@@ -58,7 +58,7 @@ test("string without format", 2, function() {
 });
 
 
-test("string with format", 13, function() {
+test("string with format", 17, function() {
     var a = [
             ['MM-DD-YYYY',          '12-02-1999'],
             ['DD-MM-YYYY',          '12-02-1999'],
@@ -72,7 +72,9 @@ test("string with format", 13, function() {
             ['DD-MM-YYYY h:m:s a',  '12-02-1999 2:45:10 am'],
             ['DD-MM-YYYY h:m:s a',  '12-02-1999 2:45:10 pm'],
             ['h:mm a',              '12:00 pm'],
+            ['h:mm a',              '12:30 pm'],
             ['h:mm a',              '12:00 am'],
+            ['h:mm a',              '12:30 am'],
             ['YYYY-MM-DDTHH:mm:ss', '2011-11-11T11:11:11'],
             ['MM-DD-YYYY \\M',          '12-02-1999 M']
         ],