Skip to content

Commit

Permalink
[v6.d REVIEW] Do not spec .Str of Capture.WHICH
Browse files Browse the repository at this point in the history
The other tests in the group already sufficiently cover the bug
  • Loading branch information
zoffixznet committed Nov 3, 2018
1 parent 1e19bd7 commit 513b42b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions S02-types/capture.t
Expand Up @@ -2,7 +2,7 @@ use v6;
use lib $?FILE.IO.parent(2).add("packages");
use Test;
use Test::Util;
plan 46;
plan 44;

{
my $capture = \(1,2,3);
Expand Down Expand Up @@ -190,13 +190,8 @@ throws-like '(my @ = 1..*).Capture', X::Cannot::Lazy, :action('create a Capture
# RT #128977 and #130954
{
my $c1 = \(42);
is $c1.WHICH, "Capture|(Int|42)";

my $a = 42;
my $c2 = \($a);
#?rakudo.jvm todo 'Code fails due to preceding test; R#1816'
like $c2.WHICH, /'Capture|(Scalar|' \d+ ')'/;

cmp-ok $c1, &[eqv], $c2;
cmp-ok $c1, {$^a !=== $^b}, $c2;
}
Expand Down

0 comments on commit 513b42b

Please sign in to comment.