Skip to content
Browse files

rakudo refudging for str-numeric branch

  • Loading branch information...
1 parent 3654c55 commit d671183d47b932807079afaa5fef6ad15d8417ed @moritz moritz committed
Showing with 5 additions and 6 deletions.
  1. +0 −1 S03-operators/context-forcers.t
  2. +1 −1 S03-sequence/basic.t
  3. +4 −4 S32-str/numeric.t
View
1 S03-operators/context-forcers.t
@@ -82,7 +82,6 @@ sub eval_elsewhere($code){ eval($code) }
my $a = '2 is my favorite number';
isa_ok(+$a, Failure, 'trailing chars cause failure');
- #?rakudo todo "should fail but doesn't yet"
my $b = 'Did you know that, 2 is my favorite number';
isa_ok(+$b, Failure, 'it is forced into a Num');
}
View
2 S03-sequence/basic.t
@@ -138,7 +138,7 @@ is (1, 2 ... 0).[^3], (1,2,3), 'No more: limit value is on the wrong side';
ok ?(one((-5 ... ^5).flat) == 0), '-5 ... ^5 produces just one zero';
# RT #75316
-#?rakudo todo 'mysterious'
+#?rakudo skip 'mysterious'
#?niecza skip 'Failure NYI'
isa_ok (1...()), Failure,
'empty list on right side of sequence operator does not cause infinite loop';
View
8 S32-str/numeric.t
@@ -29,7 +29,6 @@ check '+123', Int, 123;
check '-123', Int, -123;
check '3433683820292512484657849089281', Int, 3**64;
#?niecza 6 todo 'Failure'
-#?rakudo emit # Str.Numeric non-numeric fail
f 'a+123';
f '123foo';
f '123+';
@@ -42,10 +41,11 @@ check '0b111', Int, 7;
check '0b1_1_1', Int, 7;
check '+0b111', Int, 7;
check '-0b111', Int, -7;
-#?niecza 3 todo 'Failure'
+# 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';
-f '0b_1';
check '0o77', Int, 63;
check '+0o77', Int, 63;
check '-0o77', Int, -63;
@@ -89,13 +89,13 @@ 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';
f '+3/-2';
f '3.0/2';
f '3/2.0';
-#?rakudo skip ":radix<>"
{
check '-:10<4_2.3_5>', Rat, -42.35;
check '-:8<4_2.3_5>', Rat, -34.453125;

0 comments on commit d671183

Please sign in to comment.
Something went wrong with that request. Please try again.