Skip to content

Commit

Permalink
Changes for RT #77868 ($x max Any yielding Any).
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Jan 8, 2011
1 parent 3f3d6ce commit 0127f17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion S02-builtin_data_types/array_extending.t
Expand Up @@ -100,7 +100,7 @@ plan 21;
my $n = + @a.grep({ $_ eq 'b'});
is $n, 1, 'grep on extended array';
@a[1] = 'c'; # cmp doesn't handle Mu cmp Mu yet
ok not defined @a.min(), 'min on list with undefined el returns Mu';
is @a.min(), 'b', 'min on list with undefined el ignores it';
}

# vim: ft=perl6
12 changes: 6 additions & 6 deletions S03-operators/minmax.t
Expand Up @@ -57,11 +57,11 @@ This test min/max functions in their operator form. To see them tested in their
isnt @a max 4, 4, 'NYS';
}

#Comparing to Mu (this is miscellenia, so should be in misc.t, but best to keep related tests together --lue)
#?rakudo todo 'RT #61836'
# RT #61836
# RT #77868
{
lives_ok { (2 min Mu) }, 'can do (2 min Mu)';
lives_ok { (Mu min 2) }, 'can do (Mu min 2)';
lives_ok { (2 max Mu) }, 'can do (2 max Mu)';
lives_ok { (Mu max 2) }, 'can do (Mu max 2)';
is 2 min Any, 2, '2 min Any';
is Any min 2, 2, 'Any min 2';
is 2 max Any, 2, '2 max Any';
is Any max 2, 2, 'Any max 2';
}

0 comments on commit 0127f17

Please sign in to comment.