Permalink
Browse files

Fudge for niecza. (Also be more explicit about the sort call for niec…

…za.)
  • Loading branch information...
1 parent ecf161e commit f64c232925c48d4905b6a5f2d8e5cb4ff914adca @colomon colomon committed Dec 25, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 S32-list/classify.t
View
4 S32-list/classify.t
@@ -11,7 +11,7 @@ plan 16;
ok @results[0] ~~ Pair, 'got Pairs back from classify';
is +@results, 2, 'got two values back from classify';
- @results = @results.sort;
+ @results = @results.sort({ .key });
is @results[0].key, 'even', 'got correct "first" key';
is @results[1].key, 'odd', 'got correct "second" key';
@@ -21,6 +21,7 @@ plan 16;
#?pugs todo 'feature'
#?rakudo skip 'binding'
+#?niecza skip 'Cannot use bind operator with this LHS'
{
my @list = (1, 2, 3, 4);
my (@even,@odd);
@@ -42,6 +43,7 @@ plan 16;
}
# .classify should work on non-arrays
+#?niecza todo "Not sure what these should do"
{
lives_ok { 42.classify: { $_ } }, "method form of classify should not work on numbers";
lives_ok { "str".classify: { $_ } }, "method form of classify should not work on strings";

0 comments on commit f64c232

Please sign in to comment.