Skip to content

Commit

Permalink
[eqv.t] tests for RT #75322
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jan 31, 2011
1 parent afcdfa2 commit b814b4d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S03-operators/eqv.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 48;
plan 53;

# L<S03/Comparison semantics/Binary eqv tests equality much like === does>
# L<S32::Basics/Any/"=item eqv">
Expand Down Expand Up @@ -136,4 +136,13 @@ plan 48;
is Any eqv Mu, Bool::False, 'Any !eqv Mu';
}

# RT #75322 - Rakudo used to be confused when lists began with ()
{
nok ((), "x") eqv ((), 9), 'list starting with () - 1';
nok ((), (), 1) eqv ((), 9), 'list starting with () - 1';
nok ((), (), (), 1) eqv ((), (), ""), 'list starting with () - 1';
nok ((), (), (), 1) eqv ((), 4), 'list starting with () - 1';
ok ((), ()) eqv ((), ()), '((), ())';
}

# vim: ft=perl6

0 comments on commit b814b4d

Please sign in to comment.