Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a test for printf positional arg specifiers
  • Loading branch information
Anthony Parsons committed Jul 12, 2011
1 parent 3bcc2c8 commit 5f09039
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions S32-str/sprintf.t
Expand Up @@ -60,6 +60,9 @@ is sprintf('%s', -NaN), NaN, 'sprintf %s handles NaN';
is sprintf('%s', Inf), Inf, 'sprintf %s handles Inf';
is sprintf('%s', -Inf), -Inf, 'sprintf %s handles Inf';

#?rakudo skip "%\d$ doesn't work in master (as of 2010-07)"
is sprintf('%d %1$x %1$o', 12), '12 c 14', 'positional argument specifier $';

# RT #74610
dies_ok {sprintf "%s"}, 'missing sprintf string argument';

Expand Down

0 comments on commit 5f09039

Please sign in to comment.