Skip to content

Commit

Permalink
Improve is-run()
Browse files Browse the repository at this point in the history
Default to empty Str test for err/out and 0 exit code
  • Loading branch information
zoffixznet committed Oct 8, 2017
1 parent 63643ad commit 9c4025f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/packages/Test/Helpers.pm6
Expand Up @@ -3,7 +3,7 @@ use Test;

sub is-run (
Str() $code, $desc = "$code runs",
Stringy :$in, :@compiler-args, :@args, :$out, :$err, :$status
Stringy :$in, :@compiler-args, :@args, :$out = '', :$err = '', :$status = 0
) is export {
with run :in, :out, :err,
$*EXECUTABLE, @compiler-args, '-e', $code, @args
Expand Down

0 comments on commit 9c4025f

Please sign in to comment.