Skip to content

Commit

Permalink
test infix:<eqv>. Added variant for Code objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Lenz committed Jun 29, 2009
1 parent 13b1ff5 commit d95def2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/setting/Operators.pm
Expand Up @@ -25,6 +25,7 @@ multi sub infix:<...> (@lhs, Code $generator) {

multi sub infix:<eqv> (Num $a, Num $b) { $a === $b }
multi sub infix:<eqv> (Str $a, Str $b) { $a === $b }
multi sub infix:<eqv> (Code $a, Code $b) { $a === $b }
multi sub infix:<eqv> (Positional $a, Positional $b) {
return Bool::False unless $a.WHAT === $b.WHAT;
return Bool::False unless $a.elems == $b.elems;
Expand Down
1 change: 1 addition & 0 deletions t/spectest.data
Expand Up @@ -120,6 +120,7 @@ S03-operators/context-forcers.t
S03-operators/context.t
S03-operators/cross-metaop.t
S03-operators/equality.t
S03-operators/eqv.t
S03-operators/hyper.t
S03-operators/increment.t
S03-operators/inplace.t
Expand Down

0 comments on commit d95def2

Please sign in to comment.