Skip to content

Commit

Permalink
.classify|categorize(*) no longer throw
Browse files Browse the repository at this point in the history
vrurg++ for stating the bleedingly obvious, twice!
  • Loading branch information
lizmat committed Jan 15, 2023
1 parent 47374fc commit 0baf2c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions t/05-messages/03-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 28;
plan 26;

subtest '.map does not explode in optimizer' => {
plan 3;
Expand Down Expand Up @@ -144,9 +144,7 @@ is-run 'sub rt125181 returns Str returns Int {}',

{ # coverage; 2016-09-18
throws-like { 42.classify }, Exception, '.classify() on Any throws';
throws-like { 42.classify: * }, Exception, '.classify(*) on Any throws';
throws-like { 42.categorize }, Exception, '.categorize() on Any throws';
throws-like { 42.categorize: * }, Exception, '.categorize(*) on Any throws';
}

# https://github.com/rakudo/rakudo/issues/2110
Expand Down Expand Up @@ -189,4 +187,4 @@ is-run 'bleah:(0)', err => { .contains: 'You can\'t adverb' }, :exitcode{.so},
is-run 'close $*OUT; say "hi"', err => { .contains: 'closed handle' }, :exitcode{.so},
'An attempt to use a closed handle results in a proper error message';

# vim: expandtab shiftwidth=4
# vim: expandtab shiftwidth=4

0 comments on commit 0baf2c0

Please sign in to comment.