Skip to content

Commit

Permalink
[v6.d REVIEW] Test actual value in regexp first/grep
Browse files Browse the repository at this point in the history
Instead of its stringification

Orig: 4317d5826
  • Loading branch information
zoffixznet committed Jul 12, 2018
1 parent c313c0a commit e689a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S02-types/list.t
Expand Up @@ -136,8 +136,8 @@ is $(;).elems, 0, '$(;) parses, and is empty';

# RT#129044
{
is (a => 2).first(/a/), (a => 2), "first with a Regexp object";
is (a => 2).grep(/a/), (a => 2), "grep with a Regexp object";
is-deeply (a => 2).first(/a/), (a => 2), "first with a Regexp object";
is-deeply (a => 2).grep(/a/), ((a => 2),), "grep with a Regexp object";
}

subtest '.sum can handle Junctions' => {
Expand Down

0 comments on commit e689a08

Please sign in to comment.