@@ -9,13 +9,49 @@ UnifiedNumberFormat.__addLocaleData(
99) ;
1010const tests : any [ ] = [
1111 [
12- "auto" ,
13- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
14- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
15- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
16- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
17- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
18- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
12+ 'auto' ,
13+ [
14+ { type : 'literal' , value : '(' } ,
15+ { type : 'currency' , value : 'US$' } ,
16+ { type : 'integer' , value : '987' } ,
17+ { type : 'decimal' , value : '.' } ,
18+ { type : 'fraction' , value : '00' } ,
19+ { type : 'literal' , value : ')' } ,
20+ ] ,
21+ [
22+ { type : 'literal' , value : '(' } ,
23+ { type : 'currency' , value : 'US$' } ,
24+ { type : 'integer' , value : '0' } ,
25+ { type : 'decimal' , value : '.' } ,
26+ { type : 'fraction' , value : '00' } ,
27+ { type : 'literal' , value : ')' } ,
28+ ] ,
29+ [
30+ { type : 'literal' , value : '(' } ,
31+ { type : 'currency' , value : 'US$' } ,
32+ { type : 'integer' , value : '0' } ,
33+ { type : 'decimal' , value : '.' } ,
34+ { type : 'fraction' , value : '00' } ,
35+ { type : 'literal' , value : ')' } ,
36+ ] ,
37+ [
38+ { type : 'currency' , value : 'US$' } ,
39+ { type : 'integer' , value : '0' } ,
40+ { type : 'decimal' , value : '.' } ,
41+ { type : 'fraction' , value : '00' } ,
42+ ] ,
43+ [
44+ { type : 'currency' , value : 'US$' } ,
45+ { type : 'integer' , value : '0' } ,
46+ { type : 'decimal' , value : '.' } ,
47+ { type : 'fraction' , value : '00' } ,
48+ ] ,
49+ [
50+ { type : 'currency' , value : 'US$' } ,
51+ { type : 'integer' , value : '987' } ,
52+ { type : 'decimal' , value : '.' } ,
53+ { type : 'fraction' , value : '00' } ,
54+ ] ,
1955 ] ,
2056 [
2157 'always' ,
@@ -66,22 +102,90 @@ const tests: any[] = [
66102 ] ,
67103 ] ,
68104 [
69- "never" ,
70- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
71- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
72- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
73- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
74- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
75- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
105+ 'never' ,
106+ [
107+ { type : 'currency' , value : 'US$' } ,
108+ { type : 'integer' , value : '987' } ,
109+ { type : 'decimal' , value : '.' } ,
110+ { type : 'fraction' , value : '00' } ,
111+ ] ,
112+ [
113+ { type : 'currency' , value : 'US$' } ,
114+ { type : 'integer' , value : '0' } ,
115+ { type : 'decimal' , value : '.' } ,
116+ { type : 'fraction' , value : '00' } ,
117+ ] ,
118+ [
119+ { type : 'currency' , value : 'US$' } ,
120+ { type : 'integer' , value : '0' } ,
121+ { type : 'decimal' , value : '.' } ,
122+ { type : 'fraction' , value : '00' } ,
123+ ] ,
124+ [
125+ { type : 'currency' , value : 'US$' } ,
126+ { type : 'integer' , value : '0' } ,
127+ { type : 'decimal' , value : '.' } ,
128+ { type : 'fraction' , value : '00' } ,
129+ ] ,
130+ [
131+ { type : 'currency' , value : 'US$' } ,
132+ { type : 'integer' , value : '0' } ,
133+ { type : 'decimal' , value : '.' } ,
134+ { type : 'fraction' , value : '00' } ,
135+ ] ,
136+ [
137+ { type : 'currency' , value : 'US$' } ,
138+ { type : 'integer' , value : '987' } ,
139+ { type : 'decimal' , value : '.' } ,
140+ { type : 'fraction' , value : '00' } ,
141+ ] ,
76142 ] ,
77143 [
78- "exceptZero" ,
79- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
80- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
81- [ { "type" :"literal" , "value" :"(" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } , { "type" :"literal" , "value" :")" } ] ,
82- [ { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
83- [ { "type" :"plusSign" , "value" :"+" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"0" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
84- [ { "type" :"plusSign" , "value" :"+" } , { "type" :"currency" , "value" :"US$" } , { "type" :"integer" , "value" :"987" } , { "type" :"decimal" , "value" :"." } , { "type" :"fraction" , "value" :"00" } ] ,
144+ 'exceptZero' ,
145+ [
146+ { type : 'literal' , value : '(' } ,
147+ { type : 'currency' , value : 'US$' } ,
148+ { type : 'integer' , value : '987' } ,
149+ { type : 'decimal' , value : '.' } ,
150+ { type : 'fraction' , value : '00' } ,
151+ { type : 'literal' , value : ')' } ,
152+ ] ,
153+ [
154+ { type : 'literal' , value : '(' } ,
155+ { type : 'currency' , value : 'US$' } ,
156+ { type : 'integer' , value : '0' } ,
157+ { type : 'decimal' , value : '.' } ,
158+ { type : 'fraction' , value : '00' } ,
159+ { type : 'literal' , value : ')' } ,
160+ ] ,
161+ [
162+ { type : 'literal' , value : '(' } ,
163+ { type : 'currency' , value : 'US$' } ,
164+ { type : 'integer' , value : '0' } ,
165+ { type : 'decimal' , value : '.' } ,
166+ { type : 'fraction' , value : '00' } ,
167+ { type : 'literal' , value : ')' } ,
168+ ] ,
169+ [
170+ { type : 'currency' , value : 'US$' } ,
171+ { type : 'integer' , value : '0' } ,
172+ { type : 'decimal' , value : '.' } ,
173+ { type : 'fraction' , value : '00' } ,
174+ ] ,
175+ [
176+ { type : 'plusSign' , value : '+' } ,
177+ { type : 'currency' , value : 'US$' } ,
178+ { type : 'integer' , value : '0' } ,
179+ { type : 'decimal' , value : '.' } ,
180+ { type : 'fraction' , value : '00' } ,
181+ ] ,
182+ [
183+ { type : 'plusSign' , value : '+' } ,
184+ { type : 'currency' , value : 'US$' } ,
185+ { type : 'integer' , value : '987' } ,
186+ { type : 'decimal' , value : '.' } ,
187+ { type : 'fraction' , value : '00' } ,
188+ ] ,
85189 ] ,
86190] ;
87191describe ( 'signDisplay-currency-zh-TW' , function ( ) {
0 commit comments