Skip to content

Commit

Permalink
Test C3 linearization mentions line number
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 16, 2017
1 parent 370073f commit 04eb1da
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion t/05-messages/02-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 14;
plan 15;

# RT #132295

Expand Down Expand Up @@ -98,4 +98,18 @@ is-run 「my %h = <a 1 b 2>; enum Bits (%h)」, :err{
}, :1exitcode, '`say 1 unless;` does not repeat error';
}

# RT #126539
if $*DISTRO.is-win {
skip is-run() routine doesn't quite work right on Windows;
}
else {
is-run
# We're lookin...
# for...
# line number
class MyInt is Any is Int { } # line 5
, :err{.contains: ':5' }, :1exitcode,
'C3 linearization mentions line number';
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 04eb1da

Please sign in to comment.