Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #114014
  • Loading branch information
usev6 committed Jan 1, 2015
1 parent 60bac52 commit 8f858cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-exceptions/misc.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 273;
plan 274;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down Expand Up @@ -573,4 +573,11 @@ throws_like '&[doesntexist]', X::Comp, # XXX probably needs exception type fix
message => { m/"Malformed my (did you mean to declare a sigilless"/ };
}

# RT #114014
{
throws_like { EVAL q[ ord.Cool ] }, X::Obsolete,
message => q[Unsupported use of bare 'ord'; in Perl 6 please use .ord if you meant $_, or use an explicit invocant or argument],
'adequate error message when calling bare "ord"';
}

# vim: ft=perl6

0 comments on commit 8f858cb

Please sign in to comment.