Permalink
Browse files

un-todo some tests; plan the correct number of tests

  • Loading branch information...
perlpilot committed Aug 16, 2014
1 parent c6c02af commit 340eaeb816d4af9660a77cba8cce297ab564dc80
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/hll/06-sprintf.t
View
@@ -24,7 +24,7 @@ sub is($actual, $expected, $description) {
}
}
plan(261);
plan(265);
is(nqp::sprintf('Walter Bishop', []), 'Walter Bishop', 'no directives' );
@@ -184,8 +184,8 @@ is(nqp::sprintf('<%7.3f>', [3.1415e20]), '<314150000000000000000.000>', '%f hand
is(nqp::sprintf('<%7.3f>', [-3.1415e20]), '<-314150000000000000000.000>', '%f handles big negative numbers');
is(nqp::sprintf('<%7.3f>', [3.1415e-2]), '< 0.031>', '%f handles small numbers');
is(nqp::sprintf('<%7.3f>', [-3.1415e-2]), '< -0.031>', '%f handles small negative numbers');
is(nqp::sprintf("%.0f", [1.969]), "2", '%.0f of 1.969 should be 2 # TODO on nqp-p');
is(nqp::sprintf("%.1f", [1.969]), "2.0", '%.1f of 1.969 should be 2.0 # TODO on nqp-p');
is(nqp::sprintf("%.0f", [1.969]), "2", '%.0f of 1.969 should be 2');
is(nqp::sprintf("%.1f", [1.969]), "2.0", '%.1f of 1.969 should be 2.0');
is(nqp::sprintf("%.2f", [1.969]), "1.97", '%.2f of 1.969 should be 1.97');
is(nqp::sprintf("%.3f", [1.969]), "1.969", '%.3f of 1.969 should be 1.969');
is(nqp::sprintf("% .3f", [3.141592]), " 3.142", '% .3f of 3.141592 should be " 3.142"');

0 comments on commit 340eaeb

Please sign in to comment.