]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
adjust and update tests for en
authorRaphael Amorim <rapha850@gmail.com>
Thu, 16 Apr 2015 03:13:54 +0000 (00:13 -0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 May 2015 04:12:24 +0000 (21:12 -0700)
src/test/locale/es.js

index fb6284a225031d16fa28af51fbeed3512d653a75..ef38bdd860a3b0dd46bd04c5d7ddf2497c4cba15 100644 (file)
@@ -22,15 +22,15 @@ test('parse', function (assert) {
 
 test('format', function (assert) {
     var a = [
-            ['dddd, MMMM Do YYYY, h:mm:ss a',      'domingo, febrero 14º 2010, 3:25:50 pm'],
-            ['ddd, hA',                            'dom., 3PM'],
-            ['M Mo MM MMMM MMM',                   '2 2º 02 febrero feb.'],
+            ['dddd, MMMM Do YYYY, h:mm:ss a',      'Domingo, Febrero 14º 2010, 3:25:50 pm'],
+            ['ddd, hA',                            'Dom., 3PM'],
+            ['M Mo MM MMMM MMM',                   '2 2º 02 Febrero Feb.'],
             ['YYYY YY',                            '2010 10'],
             ['D Do DD',                            '14 14º 14'],
-            ['d do dddd ddd dd',                   '0 0º domingo dom. Do'],
+            ['d do dddd ddd dd',                   '0 0º Domingo Dom. Do'],
             ['DDD DDDo DDDD',                      '45 45º 045'],
             ['w wo ww',                            '6 6º 06'],
-            ['YYYY-MMM-DD',                        '2010-feb-14'],
+            ['YYYY-MMM-DD',                        '2010-Feb-14'],
             ['h hh',                               '3 03'],
             ['H HH',                               '15 15'],
             ['m mm',                               '25 25'],
@@ -39,13 +39,13 @@ test('format', function (assert) {
             ['[the] DDDo [day of the year]',       'the 45º day of the year'],
             ['LTS',                                '15:25:50'],
             ['L',                                  '14/02/2010'],
-            ['LL',                                 '14 de febrero de 2010'],
-            ['LLL',                                '14 de febrero de 2010 15:25'],
-            ['LLLL',                               'domingo, 14 de febrero de 2010 15:25'],
+            ['LL',                                 '14 de Febrero de 2010'],
+            ['LLL',                                '14 de Febrero de 2010 15:25'],
+            ['LLLL',                               'Domingo, 14 de Febrero de 2010 15:25'],
             ['l',                                  '14/2/2010'],
-            ['ll',                                 '14 de feb. de 2010'],
-            ['lll',                                '14 de feb. de 2010 15:25'],
-            ['llll',                               'dom., 14 de feb. de 2010 15:25']
+            ['ll',                                 '14 de Feb. de 2010'],
+            ['lll',                                '14 de Feb. de 2010 15:25'],
+            ['llll',                               'Dom., 14 de Feb. de 2010 15:25']
         ],
         b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
         i;
@@ -92,14 +92,14 @@ test('format ordinal', function (assert) {
 });
 
 test('format month', function (assert) {
-    var expected = 'enero ene._febrero feb._marzo mar._abril abr._mayo may._junio jun._julio jul._agosto ago._septiembre sep._octubre oct._noviembre nov._diciembre dic.'.split('_'), i;
+    var expected = 'Enero Ene._Febrero Feb._Marzo Mar._Abril Abr._Mayo May._Junio Jun._Julio Jul._Agosto Ago._Septiembre Sep._Octubre Oct._Noviembre Nov._Diciembre Dic.'.split('_'), i;
     for (i = 0; i < expected.length; i++) {
         assert.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
     }
 });
 
 test('format week', function (assert) {
-    var expected = 'domingo dom. Do_lunes lun. Lu_martes mar. Ma_miércoles mié. Mi_jueves jue. Ju_viernes vie. Vi_sábado sáb. Sá'.split('_'), i;
+    var expected = 'Domingo Dom. Do_Lunes Lun. Lu_Martes Mar. Ma_Miércoles Mié. Mi_Jueves Jue. Ju_Viernes Vie. Vi_Sábado Sáb. Sá'.split('_'), i;
     for (i = 0; i < expected.length; i++) {
         assert.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
     }