Skip to content

Commit

Permalink
Add a subtest multi that takes the name first
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jan 13, 2016
1 parent 5ed58f6 commit deabe62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Test.pm6
Expand Up @@ -289,7 +289,11 @@ 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 {
_push_vars();
_init_vars();
$indents ~= " ";
Expand Down

0 comments on commit deabe62

Please sign in to comment.