Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2499e19

Browse files
committedMay 13, 2024·
add format to Decimal type
add format to Decimal type fix codesniffer issue extend the unit tests to cover new 'format'-setting fix test
1 parent 33af7bf commit 2499e19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎_test/types/DecimalTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ public function valueProvider()
151151

152152
//format string
153153
['5000', '5 000', '-1', '.', ' ', true, '', '', false, ''],
154-
['5000', '5 000', '-1', '.', ' ', true, '', '', false, '%s'],
154+
['5000', '5 000.00', '2', '.', ' ', false, '', '', false, '%s'],
155155
['1.7', '1.70', '-1', '.', ' ', true, '', '', false, '%01.2f'],
156156
['1.7', '1.70' , '-1', '.', ' ', true, '', '', false, '%01.2F'],
157157
['1.7', '0001' , '-1', '.', ' ', true, '', '', false, "%'.04d"],
158158
['15', '1111' , '-1', '.', ' ', true, '', '', false, '%04b'],
159159
['362525200', '3.625e+8' , '-1', '.', ' ', true, '', '', false, '%.3e'],
160160
['362525200', '3.625E+8' , '-1', '.', ' ', true, '', '', false, '%.3E'],
161-
['1', '1 ' , '-1', '.', ' ', true, '', '', false, '%u'],
161+
['1', '1' , '-1', '.', ' ', true, '', '', false, '%u'],
162162
['-1', '18446744073709551615' , '-1', '.', ' ', true, '', '', false, '%u'],
163163

164164
];

0 commit comments

Comments
 (0)
Please sign in to comment.