Skip to content

Commit

Permalink
Test -e with arguments.
Browse files Browse the repository at this point in the history
The previous command line wrapper broke this.

For #287
  • Loading branch information
schwern committed Jun 11, 2016
1 parent 829c4ab commit 13ad83d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/command_line_wrapper.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ like `$perl5icmd -h`, qr/disable all warnings/, 'perl5i -h works as expected';

like capture { system @perl5icmd, "-e", '$^X->say' }, qr/perl5i/, '$^X is perl5i';

is capture { system @perl5icmd, "-e", 'say @ARGV', 'foo', 'bar' }, "foobar\n", "-e with args";

is capture { system @perl5icmd, '-wle', q[print 'Hello'] }, "Hello\n", "compound -e";

is capture { system @perl5icmd, "-Minteger", "-e", q[say 'Hello'] }, "Hello\n",
Expand Down

0 comments on commit 13ad83d

Please sign in to comment.