Permalink
Browse files

Switch Test.pm's &diag function to accept Mu arguments. We may

also want to .gist the message, but I leave that to others to debate. :-)
  • Loading branch information...
1 parent 5edb135 commit 80257434650c3fd8059df2d39916eee96f2dd19b @pmichaud pmichaud committed May 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Test.pm
View
@@ -135,7 +135,7 @@ sub skip_rest($reason = '<unknown>') is export {
$time_before = nqp::p6box_n(nqp::time_n);
}
-sub diag($message) is export {
+sub diag(Mu $message) is export {
$time_after = nqp::p6box_n(nqp::time_n);
say $message.Str.subst(rx/^^/, '# ', :g);
$time_before = nqp::p6box_n(nqp::time_n);

0 comments on commit 8025743

Please sign in to comment.