Skip to content

Commit

Permalink
Fix incorrect sprintf %b test with + and space options
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Nov 9, 2017
1 parent 3560c6b commit 6c5aaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-str/sprintf-b.t
Expand Up @@ -92,7 +92,7 @@ is sprintf('% +2b', 9), "+1001", '%b; size; flag space+plus; size not
is sprintf('% +10b', -9), " -1001", '%b; size; flag space+plus; negative int';
is sprintf('% +2b', -9), "-1001", '%b; size; flag space+plus; size not needed; negative int';
#?rakudo todo '"%b" with flags "plus" and "space" and positive argument not correct RT #124709'
is sprintf('%+ 10b', 9), " 1001 ", '%b; size; flag plus+space; positive int';
is sprintf('%+ 10b', 9), " +1001", '%b; size; flag plus+space; positive int';
## flags plus and hash can be combined
is sprintf('%#+10b', 9), " +0b1001", '%b; size; flag hash+plus; positive int';
is sprintf('%#+2b', 9), "+0b1001", '%b; size; flag hash+plus; size not needed; positive int';
Expand Down

0 comments on commit 6c5aaa7

Please sign in to comment.