Skip to content

Commit 4cefd7a

Browse files
authored
Merge pull request #3388 from PHPOffice/NumberFormat_Scaling-Unit-Tests
Additional unit tests for scaling values in Number Format Masks
2 parents 3102822 + e812b49 commit 4cefd7a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

tests/data/Style/NumberFormat.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,4 +1509,45 @@
15091509
12345.74,
15101510
'[$€]#,##0.00" Surplus for Product #12-345";$-#,##0.00" Shortage for Product #12-345"',
15111511
],
1512+
// Scaling
1513+
[
1514+
'12,000',
1515+
12000,
1516+
'#,###',
1517+
],
1518+
[
1519+
'12',
1520+
12000,
1521+
'#,',
1522+
],
1523+
[
1524+
'0',
1525+
120,
1526+
'#,',
1527+
],
1528+
[
1529+
'0.12',
1530+
120,
1531+
'#,.00',
1532+
],
1533+
[
1534+
'12k',
1535+
12000,
1536+
'#,k',
1537+
],
1538+
[
1539+
'12.2',
1540+
12200000,
1541+
'0.0,,',
1542+
],
1543+
[
1544+
'12.2 M',
1545+
12200000,
1546+
'0.0,, M',
1547+
],
1548+
[
1549+
'1,025.13',
1550+
1025132.36,
1551+
'#,###,.##',
1552+
],
15121553
];

0 commit comments

Comments
 (0)