@@ -24,7 +24,7 @@ sub is($actual, $expected, $description) {
24
24
}
25
25
}
26
26
27
- plan (261 );
27
+ plan (265 );
28
28
29
29
is (nqp :: sprintf (' Walter Bishop' , []), ' Walter Bishop' , ' no directives' );
30
30
@@ -184,8 +184,8 @@ is(nqp::sprintf('<%7.3f>', [3.1415e20]), '<314150000000000000000.000>', '%f hand
184
184
is (nqp :: sprintf (' <%7.3f>' , [-3.1415e20 ]), ' <-314150000000000000000.000>' , ' %f handles big negative numbers' );
185
185
is (nqp :: sprintf (' <%7.3f>' , [3.1415e-2 ]), ' < 0.031>' , ' %f handles small numbers' );
186
186
is (nqp :: sprintf (' <%7.3f>' , [-3.1415e-2 ]), ' < -0.031>' , ' %f handles small negative numbers' );
187
- is (nqp :: sprintf (" %.0f" , [1.969 ]), " 2" , ' %.0f of 1.969 should be 2 # TODO on nqp-p ' );
188
- is (nqp :: sprintf (" %.1f" , [1.969 ]), " 2.0" , ' %.1f of 1.969 should be 2.0 # TODO on nqp-p ' );
187
+ is (nqp :: sprintf (" %.0f" , [1.969 ]), " 2" , ' %.0f of 1.969 should be 2' );
188
+ is (nqp :: sprintf (" %.1f" , [1.969 ]), " 2.0" , ' %.1f of 1.969 should be 2.0' );
189
189
is (nqp :: sprintf (" %.2f" , [1.969 ]), " 1.97" , ' %.2f of 1.969 should be 1.97' );
190
190
is (nqp :: sprintf (" %.3f" , [1.969 ]), " 1.969" , ' %.3f of 1.969 should be 1.969' );
191
191
is (nqp :: sprintf (" % .3f" , [3.141592 ]), " 3.142" , ' % .3f of 3.141592 should be " 3.142"' );
0 commit comments