Skip to content

Commit e0d6187

Browse files
committed
more formal test captures
1 parent e0454a4 commit e0d6187

11 files changed

Lines changed: 4135 additions & 0 deletions

examples/expectations/big_math.json

Lines changed: 448 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
[
2+
[
3+
{
4+
"standard_format": "1,234,567.89"
5+
}
6+
],
7+
[
8+
{
9+
"billions": "1.5B",
10+
"millions": "1.5M",
11+
"thousands": "1.5k"
12+
}
13+
],
14+
[
15+
{
16+
"eu_format": "1.234,56",
17+
"indian_format": "1,234.56",
18+
"swiss_format": "1'234.56",
19+
"us_format": "1,234.56"
20+
}
21+
],
22+
[
23+
{
24+
"dollars": "$1,234.56",
25+
"euros": "\u20ac1,234.56",
26+
"pounds": "\u00a31,234.56",
27+
"yen": "\u00a550,000"
28+
}
29+
],
30+
[
31+
{
32+
"compact_code": "3k GBP",
33+
"compact_symbol": "\u00a33k",
34+
"millions_usd": "$1.5M"
35+
}
36+
],
37+
[
38+
{
39+
"amount": 2299.0,
40+
"country": "Germany",
41+
"currency": "EUR",
42+
"local_price": "\u20ac2,299.00",
43+
"price_code": "2.3k EUR",
44+
"product": "Laptop"
45+
},
46+
{
47+
"amount": 899.99,
48+
"country": "France",
49+
"currency": "EUR",
50+
"local_price": "\u20ac899.99",
51+
"price_code": "900.0 EUR",
52+
"product": "Phone"
53+
},
54+
{
55+
"amount": 1599.99,
56+
"country": "UK",
57+
"currency": "GBP",
58+
"local_price": "\u00a31,599.99",
59+
"price_code": "1.6k GBP",
60+
"product": "Tablet"
61+
},
62+
{
63+
"amount": 4500.0,
64+
"country": "Switzerland",
65+
"currency": "CHF",
66+
"local_price": "CHF4,500.00",
67+
"price_code": "4.5k CHF",
68+
"product": "Watch"
69+
},
70+
{
71+
"amount": 12999.0,
72+
"country": "Sweden",
73+
"currency": "SEK",
74+
"local_price": "12,999.00kr",
75+
"price_code": "13k SEK",
76+
"product": "Camera"
77+
}
78+
],
79+
[
80+
{
81+
"avg_price": "22,453.92",
82+
"notional": 1764000.0,
83+
"num_sales": 20,
84+
"region": "Asia",
85+
"total_compact": "5.13M"
86+
},
87+
{
88+
"avg_price": "22,453.92",
89+
"notional": 1499980.0,
90+
"num_sales": 20,
91+
"region": "Asia",
92+
"total_compact": "5.13M"
93+
},
94+
{
95+
"avg_price": "22,453.92",
96+
"notional": 1000000.0,
97+
"num_sales": 20,
98+
"region": "Asia",
99+
"total_compact": "5.13M"
100+
},
101+
{
102+
"avg_price": "22,453.92",
103+
"notional": 231104.0,
104+
"num_sales": 20,
105+
"region": "Asia",
106+
"total_compact": "5.13M"
107+
},
108+
{
109+
"avg_price": "22,453.92",
110+
"notional": 137997.0,
111+
"num_sales": 20,
112+
"region": "Europe",
113+
"total_compact": "5.13M"
114+
},
115+
{
116+
"avg_price": "22,453.92",
117+
"notional": 95994.0,
118+
"num_sales": 20,
119+
"region": "Asia",
120+
"total_compact": "5.13M"
121+
},
122+
{
123+
"avg_price": "22,453.92",
124+
"notional": 89995.0,
125+
"num_sales": 20,
126+
"region": "Europe",
127+
"total_compact": "5.13M"
128+
},
129+
{
130+
"avg_price": "22,453.92",
131+
"notional": 55999.86,
132+
"num_sales": 20,
133+
"region": "North America",
134+
"total_compact": "5.13M"
135+
},
136+
{
137+
"avg_price": "22,453.92",
138+
"notional": 51996.0,
139+
"num_sales": 20,
140+
"region": "Europe",
141+
"total_compact": "5.13M"
142+
},
143+
{
144+
"avg_price": "22,453.92",
145+
"notional": 47499.75,
146+
"num_sales": 20,
147+
"region": "North America",
148+
"total_compact": "5.13M"
149+
},
150+
{
151+
"avg_price": "22,453.92",
152+
"notional": 30799.89,
153+
"num_sales": 20,
154+
"region": "Europe",
155+
"total_compact": "5.13M"
156+
},
157+
{
158+
"avg_price": "22,453.92",
159+
"notional": 19795.5,
160+
"num_sales": 20,
161+
"region": "Oceania",
162+
"total_compact": "5.13M"
163+
},
164+
{
165+
"avg_price": "22,453.92",
166+
"notional": 19794.0,
167+
"num_sales": 20,
168+
"region": "Europe",
169+
"total_compact": "5.13M"
170+
},
171+
{
172+
"avg_price": "22,453.92",
173+
"notional": 19485.0,
174+
"num_sales": 20,
175+
"region": "North America",
176+
"total_compact": "5.13M"
177+
},
178+
{
179+
"avg_price": "22,453.92",
180+
"notional": 13293.0,
181+
"num_sales": 20,
182+
"region": "Europe",
183+
"total_compact": "5.13M"
184+
},
185+
{
186+
"avg_price": "22,453.92",
187+
"notional": 12499.949999999999,
188+
"num_sales": 20,
189+
"region": "North America",
190+
"total_compact": "5.13M"
191+
},
192+
{
193+
"avg_price": "22,453.92",
194+
"notional": 11199.93,
195+
"num_sales": 20,
196+
"region": "Europe",
197+
"total_compact": "5.13M"
198+
},
199+
{
200+
"avg_price": "22,453.92",
201+
"notional": 10799.880000000001,
202+
"num_sales": 20,
203+
"region": "Europe",
204+
"total_compact": "5.13M"
205+
},
206+
{
207+
"avg_price": "22,453.92",
208+
"notional": 9000.0,
209+
"num_sales": 20,
210+
"region": "Europe",
211+
"total_compact": "5.13M"
212+
},
213+
{
214+
"avg_price": "22,453.92",
215+
"notional": 6897.0,
216+
"num_sales": 20,
217+
"region": "Europe",
218+
"total_compact": "5.13M"
219+
}
220+
],
221+
[
222+
{
223+
"formatted_units": "90.00",
224+
"num_currencies": "5.00",
225+
"product": "Phone",
226+
"units_sold": 90
227+
},
228+
{
229+
"formatted_units": "30.00",
230+
"num_currencies": "4.00",
231+
"product": "Camera",
232+
"units_sold": 30
233+
},
234+
{
235+
"formatted_units": "30.00",
236+
"num_currencies": "3.00",
237+
"product": "Tablet",
238+
"units_sold": 30
239+
},
240+
{
241+
"formatted_units": "19.00",
242+
"num_currencies": "4.00",
243+
"product": "Laptop",
244+
"units_sold": 19
245+
},
246+
{
247+
"formatted_units": "19.00",
248+
"num_currencies": "4.00",
249+
"product": "Watch",
250+
"units_sold": 19
251+
}
252+
]
253+
]

0 commit comments

Comments
 (0)