Skip to content

Commit

Permalink
Test X::OutOfRange .gists given ranges
Browse files Browse the repository at this point in the history
Closes #1813 R#1813
  • Loading branch information
zoffixznet committed Jul 30, 2018
1 parent bb6a6f8 commit 4508085
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/05-messages/03-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 23;
plan 24;

subtest '.map does not explode in optimizer' => {
plan 3;
Expand Down Expand Up @@ -167,4 +167,9 @@ else {
'heredoc trimming warnings do not reference guts';
}

# https://github.com/rakudo/rakudo/issues/1813
cmp-ok X::OutOfRange.new(
:what<a range>, :got(0..3000), :range(1..3000)
).message.chars, '<', 150, 'X::OutOfRange does not stringify given Ranges';

# vim: ft=perl6 expandtab sw=4

0 comments on commit 4508085

Please sign in to comment.