Skip to content

Commit

Permalink
Additional unit tests for scaling values in Number Format Masks
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker committed Feb 21, 2023
1 parent 3102822 commit e812b49
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/data/Style/NumberFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1509,4 +1509,45 @@
12345.74,
'[$€]#,##0.00" Surplus for Product #12-345";$-#,##0.00" Shortage for Product #12-345"',
],
// Scaling
[
'12,000',
12000,
'#,###',
],
[
'12',
12000,
'#,',
],
[
'0',
120,
'#,',
],
[
'0.12',
120,
'#,.00',
],
[
'12k',
12000,
'#,k',
],
[
'12.2',
12200000,
'0.0,,',
],
[
'12.2 M',
12200000,
'0.0,, M',
],
[
'1,025.13',
1025132.36,
'#,###,.##',
],
];

0 comments on commit e812b49

Please sign in to comment.