|
89 | 89 | - result: '1.200000'
|
90 | 90 | args: [['%f', 1.2]]
|
91 | 91 | float: true
|
92 |
| - |
93 | 92 | - result: '123.456789'
|
94 | 93 | args: [['%f', 123.456789]]
|
95 | 94 | float: true
|
| 95 | + |
| 96 | +- result: '0.01234568' |
| 97 | + args: [['%.8f', 0.0123456789012345678901234567890123456789]] |
| 98 | + float: true |
| 99 | +- result: '0.012345679' |
| 100 | + args: [['%.9f', 0.0123456789012345678901234567890123456789]] |
| 101 | + float: true |
| 102 | +# Actual precision is no more than 9 |
| 103 | +- result: '0.0123456790' |
| 104 | + args: [['%.10f', 0.0123456789012345678901234567890123456789]] |
| 105 | + float: true |
| 106 | +- result: '0.01234567900' |
| 107 | + args: [['%.11f', 0.0123456789012345678901234567890123456789]] |
| 108 | + float: true |
| 109 | +- result: '0.012345679000' |
| 110 | + args: [['%.12f', 0.0123456789012345678901234567890123456789]] |
| 111 | + float: true |
| 112 | +- result: '0.012345679000000000000000000000' |
| 113 | + args: [['%.30f', 0.0123456789012345678901234567890123456789]] |
| 114 | + float: true |
| 115 | +# Actual length is no more than 32 |
| 116 | +- result: '0.012345679000000000000000000000' |
| 117 | + args: [['%.31f', 0.0123456789012345678901234567890123456789]] |
| 118 | + float: true |
| 119 | +- result: '0.012345679000000000000000000000' |
| 120 | + args: [['%.32f', 0.0123456789012345678901234567890123456789]] |
| 121 | + float: true |
| 122 | +# Actual length is no more than 32 |
| 123 | +- result: '10.01234567900000000000000000000' |
| 124 | + args: [['%.32f', 10.0123456789012345678901234567890123456789]] |
| 125 | + float: true |
| 126 | +- result: '100.0123456790000000000000000000' |
| 127 | + args: [['%.32f', 100.0123456789012345678901234567890123456789]] |
| 128 | + float: true |
| 129 | +- result: '1000.012345679000000000000000000' |
| 130 | + args: [['%.32f', 1000.0123456789012345678901234567890123456789]] |
| 131 | + float: true |
0 commit comments