@@ -16,13 +16,14 @@ module.exports = {
16
16
return Globalize ;
17
17
} ,
18
18
cases : function ( Globalize ) {
19
+ var big = 99999999.99 ;
19
20
Globalize . locale ( "en" ) ;
20
21
return [
21
22
{ formatter : Globalize . numberFormatter ( ) , args : [ Math . PI ] } ,
22
23
{ formatter : Globalize ( "es" ) . numberFormatter ( ) , args : [ Math . PI ] } ,
23
24
{ formatter : Globalize ( "ar" ) . numberFormatter ( ) , args : [ Math . PI ] } ,
24
25
{ formatter : Globalize ( "zh-u-nu-native" ) . numberFormatter ( ) , args : [ Math . PI ] } ,
25
- { formatter : Globalize . numberFormatter ( ) , args : [ 99999999.99 ] } ,
26
+ { formatter : Globalize . numberFormatter ( ) , args : [ big ] } ,
26
27
27
28
{ formatter : Globalize . numberFormatter ( {
28
29
minimumIntegerDigits : 2 ,
@@ -51,10 +52,12 @@ module.exports = {
51
52
minimumSignificantDigits : 1 ,
52
53
maximumSignificantDigits : 3
53
54
} ) , args : [ 0.00010001 ] } ,
54
- { formatter : Globalize . numberFormatter ( { useGrouping : false } ) , args : [ 99999999.99 ] } ,
55
+ { formatter : Globalize . numberFormatter ( { useGrouping : false } ) , args : [ big ] } ,
55
56
56
57
{ formatter : Globalize . numberFormatter ( { style : "percent" } ) , args : [ Math . PI ] } ,
57
- { formatter : Globalize ( "ar" ) . numberFormatter ( { style : "percent" } ) , args : [ Math . PI ] }
58
+ { formatter : Globalize ( "ar" ) . numberFormatter ( { style : "percent" } ) , args : [ Math . PI ] } ,
59
+ { formatter : Globalize . numberFormatter ( { compact : "short" } ) , args : [ big ] } ,
60
+ { formatter : Globalize . numberFormatter ( { compact : "long" } ) , args : [ big ] }
58
61
] ;
59
62
}
60
63
} ;
0 commit comments