Skip to content

Commit

Permalink
Output the subtest name via diag before running the subtest
Browse files Browse the repository at this point in the history
This matches p5, and makes the output a little easier to follow as you go
  • Loading branch information
autarch committed Jan 13, 2016
1 parent deabe62 commit 7049d71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Test.pm6
Expand Up @@ -294,6 +294,7 @@ multi sub subtest($desc, &subtests) is export {
}

multi sub subtest(&subtests, $desc = '') is export {
diag($desc) if $desc;
_push_vars();
_init_vars();
$indents ~= " ";
Expand Down

0 comments on commit 7049d71

Please sign in to comment.