Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add simple %x test that would have prevented my last nieczabug.
  • Loading branch information
colomon committed Jul 6, 2012
1 parent 1a4be3d commit 235d9e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-str/sprintf.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 124;
plan 125;

# L<S32::Str/Str/"identical to" "C library sprintf">

Expand Down Expand Up @@ -49,6 +49,7 @@ is sprintf('%o', 22.01), '26', 'decimal %o';
is sprintf('%03o', 32), '040', '0-padded %o';
is sprintf('%03o', 42.6), '052', '0-padded decimal %o';

is sprintf('%x', 0), '0', 'simple %x';
is sprintf('%x', 12), 'c', 'simple %x';
is sprintf('%x', 22.01), '16', 'decimal %x';
is sprintf('%03x', 32), '020', '0-padded %x';
Expand Down

0 comments on commit 235d9e1

Please sign in to comment.