Skip to content

Commit

Permalink
added fudged test for RT #123862 - negative radix
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Mar 10, 2015
1 parent d461bad commit 6c3d4d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S02-literals/radix.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 136;
plan 138;

# L<S02/General radices/":10<42>">
is( :10<0>, 0, 'got the correct int value from decimal 0' );
Expand Down Expand Up @@ -97,6 +97,14 @@ is(:16('0d37'), 0x0D37, ":16('0d37') uses d as hex digit" );
{
is_approx(:16<dead_beef> * 16**8, :16<dead_beef*16**8>,
'Powers outside same as powers inside');

is_approx(:16<dead_beef> * 16**0, :16<dead_beef*16**0>,
'Zero powers inside');

#?rakudo.moar skip "RT #123862 - negative radix"
#?rakudo.jvm skip "RT #123862 - negative radix"
is_approx(:16<dead_beef> * 16**-1, :16<dead_beef*16**-1>,
'Negative powers inside');
}

# L<S02/General radices/"Any radix may include a fractional part">
Expand Down

0 comments on commit 6c3d4d7

Please sign in to comment.