Skip to content

Commit

Permalink
Added tests for optional decimal places.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathonKoster committed Apr 13, 2016
1 parent fae847c commit 29d61e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/FormattingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ class FormattingTest extends PHPUnit_Framework_TestCase
[1.10, '0000.00', '0001.10'],
[2011.10, '0000.00', '2011.10'],
[2011.10, '000000.00', '002011.10'],
[100, '0[.]000', '100'],
[100.12, '0[.]000', '100.120'],
[100.12, '0[.]00[0]', '100.12'],
[100.12, '0[.]00[000]', '100.12'],
[100.123, '0[.]00[000]', '100.123'],
[100.1234, '0[.]00[000]', '100.1234'],
[100.12345, '0[.]00[000]', '100.12345'],
[100.123456, '0[.]00[000]', '100.12346'],
[100.123453, '0[.]00[000]', '100.12345'],


// specified abbreviations
Expand Down

0 comments on commit 29d61e3

Please sign in to comment.