Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #107756, :10() form needs a string as argument, not a number
  • Loading branch information
moritz committed Apr 22, 2012
1 parent 2f2567f commit e7f5ef3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S02-literals/radix.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 133;
plan 134;

# L<S02/General radices/":10<42>">
is( :10<0>, 0, 'got the correct int value from decimal 0' );
Expand All @@ -24,6 +24,9 @@ is( :10<42>, 0d42, ':10<42> and 0d42 are the same' );
is(:10('0x20'), 0x20, ":10('0x20') overrides default decimal");
is(:10('0o377'), 0o377, ":10('0o255') overrides default decimal");
is(:10('0d37'), 0d37, ":10('0d37') overrides default decimal");

# RT #107756
dies_ok { :10(42) }, ':10() really wants a string, not a number';
}


Expand Down

0 comments on commit e7f5ef3

Please sign in to comment.