Skip to content

Commit

Permalink
Make sure to :close the output when slurp()ing it
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Apr 24, 2017
1 parent d00de93 commit a87d708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/05-messages/01-errors.t
Expand Up @@ -64,15 +64,15 @@ throws-like 「m: my @a = for 1..3 <-> { $_ }」, Exception,

# RT #113954
{
is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo bar|) {}]]).err.slurp,
is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo bar|) {}]]).err.slurp(:close),
qq|Usage:\n -e '...' 'foo bar' \n|,
'a space in a literal param to a MAIN() multi makes the suggestion quoted';

is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo"bar|) {}]]).err.slurp,
is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo"bar|) {}]]).err.slurp(:close),
qq|Usage:\n -e '...' 'foo"bar' \n|,
'a double qoute in a literal param to a MAIN() multi makes the suggestion quoted';

is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo'bar|) {}]]).err.slurp,
is run(:err, $*EXECUTABLE, ['-e', q[multi MAIN(q|foo'bar|) {}]]).err.slurp(:close),
qq|Usage:\n -e '...' 'foo'"'"'bar' \n|,
'a single qoute in a literal param to a MAIN() multi makes the suggestion quoted';
}
Expand Down

0 comments on commit a87d708

Please sign in to comment.