Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #112870, LTM and user-defined operators
  • Loading branch information
moritz committed Jan 12, 2013
1 parent 3582496 commit 76c7334
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S06-operator-overloading/sub.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 67;
plan 68;

=begin pod
Expand Down Expand Up @@ -418,9 +418,12 @@ Testing operator overloading subroutines
}
# RT #111418
# RT #112870
{
sub infix:<*+>($a, $b) { $a * $b + $b }
is 2 *+ 5, 15, 'longest operator wins (RT 111418)';
sub infix:<~eq>(Str $a, Str $b) { uc($a) eq uc($b) }
ok 'a' ~eq 'A', 'longest operator wins (RT 112870)';
}
done;
Expand Down

0 comments on commit 76c7334

Please sign in to comment.