Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A test for #130211 (#196)
* A test for #130211

* Better test

* Test message was returned

* Whitespace is removed
  • Loading branch information
Altai-man authored and zoffixznet committed Dec 15, 2016
1 parent fc0d82a commit a9fd375
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integration/error-reporting.t
Expand Up @@ -2,7 +2,7 @@ use v6;
use lib 't/spec/packages';

use Test;
plan 30;
plan 31;

use Test::Util;

Expand Down Expand Up @@ -216,6 +216,13 @@ is_run Q[#`{{ my long
unfinished comment'],
{ :out(''), :err{ $^o.contains: 'line 1' }}, 'Unfinished comment error points on correct line';

# RT 130211
throws-like 'role R-RT130211 { method overload-this(){...} };
role C-RT130211 { method overload-this(){...} };
class A does R does C {};', X::Comp::AdHoc, :message{ .contains('R-RT130211') and
.contains('C-RT130211') }, 'all roles with unimplemented method pointed out in reverse order';


# RT #129800
subtest 'X::Multi::NoMatch correct shows named arguments' => {
my class RT129800 { multi method foo ($) {} }
Expand Down

0 comments on commit a9fd375

Please sign in to comment.