Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test that parameters are included in suggestions
  • Loading branch information
hoelzro committed Jan 15, 2015
1 parent 8e21b00 commit 5b8cca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S32-exceptions/misc.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 274;
plan 275;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down Expand Up @@ -424,6 +424,8 @@ if $emits_suggestions {
ok $! ~~ X::Undeclared::Symbols, "Ecxeption.new throws X::Undeclared::Symbols";
is $!.type_suggestion<Ecxeption>, ["Exception"], 'Exception is a suggestion';
}

throws_like 'sub greet($name) { say "hello, $nam" }', X::Undeclared, suggestions => '$name';
}

# RT 77270
Expand Down

0 comments on commit 5b8cca1

Please sign in to comment.