Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
niecza fudge
  • Loading branch information
coke committed Sep 4, 2013
1 parent a01bfab commit 29b2876
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions S05-substitution/subst.t
Expand Up @@ -416,6 +416,7 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
}

# RT #83552
#?niecza skip 'Unable to resolve method postcircumfix:<( )> in type Any'
{
use lib "t/spec/packages";
use Test::Util;
Expand Down
2 changes: 2 additions & 0 deletions S32-array/end.t
Expand Up @@ -23,12 +23,14 @@ plan 12;
{
my $a;
#?pugs todo
#?niecza skip "https://github.com/sorear/niecza/issues/187"
is $a.end, -1, ".end works on arbitrary scalars (1)";
}

{
my $a = 42;
#?pugs todo
#?niecza skip "https://github.com/sorear/niecza/issues/187"
is $a.end, 0, ".end works on arbitrary scalars (2)";
}

Expand Down
11 changes: 1 addition & 10 deletions S32-str/numeric.t
Expand Up @@ -17,6 +17,7 @@ sub check($str, $expected_type, $expected_number, $desc?) {
sub f($str) {
my $num = 0; # defined
so try { $num = +$str }
#?niecza todo 'Failure'
ok !$num.defined, "+$str fails";
}

Expand All @@ -28,7 +29,6 @@ check '1_2_3', Int, 123;
check '+123', Int, 123;
check '-123', Int, -123;
check '3433683820292512484657849089281', Int, 3**64;
#?niecza 6 todo 'Failure'
f 'a+123';
f '123foo';
f '123+';
Expand All @@ -43,23 +43,19 @@ check '+0b111', Int, 7;
check '-0b111', Int, -7;
# the spec is silent about this one, but rakudo and niecza agree
check '0b_1', Int, 1;
#?niecza 2 todo 'Failure'
f '0b112';
f '0b';
check '0o77', Int, 63;
check '+0o77', Int, 63;
check '-0o77', Int, -63;
#?niecza todo 'Failure'
f '0o8';
check '0d123', Int, 123;
check '-0d123', Int, -123;
#?niecza todo 'Failure'
f '0da';
check '0x123', Int, 291;
check '-0x123', Int, -291;
check '0xa0', Int, 160;
check '-0xA0', Int, -160;
#?niecza 2 todo 'Failure'
f '0xag';
f '0xaf-';

Expand All @@ -79,7 +75,6 @@ f '0xaf-';
f ':10<8';
}

#?niecza todo 'Failure'
f '123.';
check '123.0', Rat, 123;
check '-123.0', Rat, -123;
Expand All @@ -88,7 +83,6 @@ check '+1_2_3.0_0', Rat, 123;
check '3/2', Rat, 1.5;
check '+3/2', Rat, 1.5;
check '-3/2', Rat, -1.5;
#?niecza 5 todo 'Failure'
#?rakudo 5 todo 'Failure'
f '-3/-2';
f '3/-2';
Expand All @@ -101,7 +95,6 @@ f '3/2.0';
check '-:8<4_2.3_5>', Rat, -34.453125;

# from S02-literals/radix.t
#?niecza 12 todo 'Failure'
f ":2.4<01>";
f ":10<12f>";
f ":1b<10>";
Expand Down Expand Up @@ -133,7 +126,6 @@ check '-123E+0', Num, -123;
check '-123E+0_1', Num, -1230;
check '1230E-1', Num, 123;
check '-12E+1', Num, -120;
#?niecza 2 todo 'Failure'
f '120e';
f '120e2_';

Expand All @@ -158,7 +150,6 @@ is +"NaN", 'NaN', 'NaN';
}

#?rakudo todo "complex Str.Numeric"
#?niecza todo 'Failure'
f '3+Infi';

# TODO: Complex with radix
Expand Down

0 comments on commit 29b2876

Please sign in to comment.