Permalink
Browse files

niecza (auto)unfudge

  • Loading branch information...
1 parent 3bf852e commit b741ac76bfe6035f0f596e1f9c2c04e803355da7 @coke coke committed Jan 10, 2012
Showing with 2 additions and 7 deletions.
  1. +0 −2 S03-operators/range.t
  2. +1 −1 S05-transliteration/trans.t
  3. +1 −3 S06-multi/type-based.t
  4. +0 −1 integration/advent2009-day09.t
View
@@ -149,7 +149,6 @@ is (1..6 Z 'a' .. 'c').join, '1a2b3c', 'Ranges and infix:<Z>';
is (0..3).map({$_ * 2}).join('|'), '0|2|4|6', '.map works on ranges';
is (0..3).grep({$_ == 1|3}).join('|'), '1|3', '.grep works on ranges';
is (1..3).first({ $_ % 2 == 0}), 2, '.first works on ranges';
- #?niecza skip 'Unable to resolve method reduce in class Range'
is (1..3).reduce({ $^a + $^b}), 6, '.reduce works on ranges';
}
@@ -243,7 +242,6 @@ is (1..6 Z 'a' .. 'c').join, '1a2b3c', 'Ranges and infix:<Z>';
}
# RT #82620
-#?niecza todo 'trans NYI'
{
lives_ok {("a".."b").map({.trans(""=>"")}).perl},
"range doesn't leak Parrot types";
@@ -261,7 +261,7 @@ is('ababab'.trans([/ab/, 'aba', 'bab', /baba/] =>
'longest token still holds, even between constant strings and regexes');
# RT #83674
-#?niecza skip 'Not sure what is supposed to be going on here'
+#?niecza todo 'Not sure what is supposed to be going on here'
lives_ok { my @a = 1..2; @a>>.trans((1..2) => (14..15,1..2)); }, 'trans works with Cool signature';
# vim: ft=perl6
View
@@ -7,7 +7,6 @@ plan 51;
#L<S06/"Longname parameters">
#L<S12/"Multisubs and Multimethods">
-#?niecza emit # foo (5) NYI
multi foo (5) { "Constant" }
multi foo (Int $bar) { "Int " ~ $bar }
multi foo (Str $bar) { "Str " ~ $bar }
@@ -18,12 +17,11 @@ multi foo (Sub $bar) { "Sub " ~ $bar() }
multi foo (@bar) { "Positional " ~ join(', ', @bar) }
multi foo (%bar) { "Associative " ~ join(', ', %bar.keys.sort) }
multi foo (IO $fh) { "IO" } #OK not used
-#?niecza emit # foo (5) NYI
+#?niecza emit # foo (Inf) NYI
multi foo (Inf) { "Inf" }
#?niecza emit # foo (5) NYI
multi foo (NaN) { "NaN" }
-#?niecza todo
is foo(5), 'Constant', 'dispatched to the constant sub';
is(foo(2), 'Int 2', 'dispatched to the Int sub');
@@ -76,7 +76,6 @@ dies_ok {eval 'namen(@te)' }, 'Autoflattening doesnt exist';
is (namen(|@te)), ('a','b','c'), "Put a | in front of the variable, and you're ok!";
is <734043054508967647390469416144647854399310>.comb(/.**7/).join('|') , '7340430|5450896|7647390|4694161|4464785|4399310' , 'Test one liner at end of post (part1)';
-#?niecza skip 'Unable to resolve method trans in class Str'
{
is '7340430'.fmt("%b").trans("01" => " #") , '### ## ### ' , 'Test one liner at end of post (part2)';
}

0 comments on commit b741ac7

Please sign in to comment.