Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Test.pm] give better diagnostic output in isa_ok()
  • Loading branch information
moritz committed Mar 28, 2010
1 parent cddc8a7 commit 0577068
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Test.pm
Expand Up @@ -132,7 +132,10 @@ multi sub isa_ok(Mu $var,$type) is export {
ok($var.isa($type), "The object is-a '$type'")
or diag('Actual type: ' ~ $var.WHAT);
}
multi sub isa_ok(Mu $var,$type, $msg) is export { ok($var.isa($type), $msg); }
multi sub isa_ok(Mu $var,$type, $msg) is export {
ok($var.isa($type), $msg)
or diag('Actual type: ' ~ $var.WHAT);
}

multi sub dies_ok($closure, $reason) is export {
try {
Expand Down

0 comments on commit 0577068

Please sign in to comment.