Skip to content

Commit

Permalink
Test Seqs !eqv Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Mar 1, 2017
1 parent 3fdfcc0 commit dcdcec2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S03-operators/eqv.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 55;
plan 56;

# L<S03/Comparison semantics/Binary eqv tests equality much like === does>
# L<S32::Basics/Any/"=item eqv">
Expand Down Expand Up @@ -171,4 +171,14 @@ subtest 'Setty eqv Setty' => {
ok set(<42>) eqv set(<42>), 'IntStr does eqv IntStr';
}

subtest 'Seq eqv List' => {
my @tests = ().Seq => (), (1, 2).Seq => (1, 2), ().Seq => (1, 2),
(1, 2).Seq => (), (1…∞) => (1…∞).List, (1…∞).List => (1…∞);

plan +@tests;
cmp-ok .key, &[!eqv], .value,
"{.key.^name}({.key}) !eqv {.value.^name}({.value})"
for @tests;
}

# vim: ft=perl6

0 comments on commit dcdcec2

Please sign in to comment.