Skip to content
Permalink
Browse files

Add test for GH #2320

  • Loading branch information...
hoelzro committed Oct 23, 2018
1 parent 90103f6 commit 68b44e33b7ffae8526bf6efc797d596d184ead13
Showing with 5 additions and 1 deletion.
  1. +5 −1 t/05-messages/03-errors.t
@@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 24;
plan 25;

subtest '.map does not explode in optimizer' => {
plan 3;
@@ -172,4 +172,8 @@ cmp-ok X::OutOfRange.new(
:what<a range>, :got(0..3000), :range(1..3000)
).message.chars, '<', 150, 'X::OutOfRange does not stringify given Ranges';

# https://github.com/rakudo/rakudo/issues/2320
is-run 'class { method z { $^a } }', :err{ my @lines = $^msg.lines; @lines.grep({ !/'⏏'/ && .contains: '$^a' }) }, :exitcode{.so},
'Use placeholder variables in a method should yield a useful error message';

# vim: ft=perl6 expandtab sw=4

0 comments on commit 68b44e3

Please sign in to comment.
You can’t perform that action at this time.