Permalink
Browse files
changed up ad-hoc $! test to use throws_like.
- Loading branch information...
Showing
with
3 additions
and
2 deletions.
-
+3
−2
S12-introspection/meta-class.t
|
@@ -45,8 +45,9 @@ eval_lives_ok "True.HOW.say", "can output the .gist of a .HOW"; |
|
|
|
|
|
# RT #114130
|
|
|
{
|
|
|
- try eval 'Any.HOW(Foo)';
|
|
|
- isa_ok $!, X::Syntax::Argument::MOPMacro, "Passing arguments to HOW throws an exception";
|
|
|
+ use lib "t/spec/packages";
|
|
|
+ use Test::Util;
|
|
|
+ throws_like 'Any.HOW(Foo)', X::Syntax::Argument::MOPMacro;
|
|
|
}
|
|
|
|
|
|
# vim: ft=perl6
|
0 comments on commit
e76e8b9