Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add fudged tests for problematic representation-breaking radix literals
  • Loading branch information
skids committed May 14, 2014
1 parent ddedc47 commit 8a66fa5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S02-literals/radix.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 134;
plan 135;

# L<S02/General radices/":10<42>">
is( :10<0>, 0, 'got the correct int value from decimal 0' );
Expand Down Expand Up @@ -202,6 +202,11 @@ is( :2<1.1> * :2<10> ** :2<10>, 6, 'multiplication and exponentiatio

is :100[10,10], 1010, "Adverbial form of base 100 integer works";
is :100[10,'.',10], 10.10, "Adverbial form of base 100 fraction works";

# Representation-stressing large radix. Do two tests in one here
# so both 32-bit and 64-bit machines are likely to fail uniformly.
#?rakudo todo "This needs an RT"
is :18446744073709551616[1,1] ~ " " ~ :4294967296[1,1], "18446744073709551617 4294967297", "32bit and 64bit large radix literals work";
}

# What follows are tests that were moved here from t/syntax/numbers/misc.t
Expand Down

0 comments on commit 8a66fa5

Please sign in to comment.