Skip to content

Commit

Permalink
[v6.d REVIEW] Don't spec exact .grep error text
Browse files Browse the repository at this point in the history
Orig: d1a874df5
  • Loading branch information
zoffixznet committed Jul 15, 2018
1 parent da04da9 commit 3869a2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions S32-list/grep.t
Expand Up @@ -155,15 +155,13 @@ my @list = (1 .. 10);
# grep with an unexpected adverb
{
throws-like(
{ @list.grep(Mu, :asdf) },
X::Adverb,
message => q{Unexpected adverb 'asdf' passed to grep on @list},
{ @list.grep(Mu, :asdfblargs) },
X::Adverb, :unexpected{.contains: 'asdfblargs'},
'grep on an instance with an unexpected adverb'
);
throws-like(
{ List.grep(Mu, :asdf) },
X::Adverb,
message => q{Unexpected adverb 'asdf' passed to grep on List},
{ List.grep(Mu, :asdfblargs) },
X::Adverb, :unexpected{.contains: 'asdfblargs'},
'grep on a type object with an unexpected adverb'
);
}
Expand Down

0 comments on commit 3869a2f

Please sign in to comment.