Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed padding in test for %g's precision
  • Loading branch information
FROGGS committed Jul 8, 2013
1 parent 5d68e65 commit f4db52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/jvm/06-sprintf.t
Expand Up @@ -196,5 +196,5 @@ is(nqp::sprintf('%020.2g', [3.1415e20]), '0000000000003.14e+20', '020.2 %g')
is(nqp::sprintf('%020.2G', [3.1415e20]), '0000000000003.14e+20', '020.2 %G');
is(nqp::sprintf('%020.2g', [-3.1415e20]), '-000000000003.14e+20', 'negative 020.2 %g');
is(nqp::sprintf('%020.2G', [-3.1415e20]), '-000000000003.14e+20', 'negative 020.2 %G');
is(nqp::sprintf('<%7.3g>', [3e20]), '< 3.000e+20>', '%g fills up to precision');
is(nqp::sprintf('<%7.3g>', [3.1e20]), '< 3.100e+20>', '%g fills up to precision');
is(nqp::sprintf('<%11.3g>', [3e20]), '< 3.000e+20>', '%g fills up to precision');
is(nqp::sprintf('<%11.3g>', [3.1e20]), '< 3.100e+20>', '%g fills up to precision');

0 comments on commit f4db52b

Please sign in to comment.