Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #684 from autarch/autarch/test.pm-tweaks
A few small tweaks for Test.pm6
  • Loading branch information
lizmat committed Jan 13, 2016
2 parents 5ed58f6 + 7049d71 commit a192ec5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Test.pm6
Expand Up @@ -289,7 +289,12 @@ sub skip-rest($reason = '<unknown>') is export {
$time_before = nqp::time_n;
}

sub subtest(&subtests, $desc = '') is export {
multi sub subtest($desc, &subtests) is export {
subtest(&subtests, $desc);
}

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

0 comments on commit a192ec5

Please sign in to comment.