Skip to content

Commit

Permalink
Update tests for RT #122437
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Jul 30, 2014
1 parent b25116e commit 5b6b146
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S32-str/sprintf.t
Expand Up @@ -189,10 +189,9 @@ ok sprintf('%020.2G', -3.1415e-30) eq '-000000000003.1E-030' | '-0000000000003.1
is sprintf("%.5f", pi), '3.14159', '"%.5"';
is sprintf("%.5f", -pi), '-3.14159', 'negative "%.5"';
is sprintf("%+.5f", -pi), '-3.14159', 'negative "%+.5"';
#?rakudo 3 todo 'RT #122437'
is sprintf("%+.5f", pi), '+3.14159', '"%+.5"';
is sprintf("% .5f", pi), '+3.14159', '" %.5"';
is sprintf("% .5f", -pi), ' 3.14159', 'negative "%.5"';
is sprintf("% .5f", pi), ' 3.14159', '" %.5"';
is sprintf("% .5f", -pi), '-3.14159', 'negative "%.5"';

is sprintf('%e', 2.718281828459), sprintf('%.6e', 2.718281828459), '%e defaults to .6';
is sprintf('%E', 2.718281828459), sprintf('%.6E', 2.718281828459), '%E defaults to .6';
Expand Down

0 comments on commit 5b6b146

Please sign in to comment.