Skip to content

Commit

Permalink
Declared variables must persist across multiple lines of input
Browse files Browse the repository at this point in the history
RT#128973
  • Loading branch information
zoffixznet committed Aug 18, 2016
1 parent da7a590 commit 2d3fa13
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S19-command-line/repl.t
Expand Up @@ -4,7 +4,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 8;
plan 9;

# Sanity check that the repl is working at all.
my $cmd = $*DISTRO.is-win
Expand Down Expand Up @@ -80,3 +80,11 @@ is shell($cmd).exitcode, 42, 'exit(42) in executed REPL got run';
:err(/'Could not find NonExistentModuleRT128595'/),
'REPL with -M with non-existent module does not start';
}

# RT #128973
{
is_run_repl "my \$x = 42;\nsay qq/The value is \$x/;\n",
:err(''),
:out(/'The value is 42'/),
'variables persist across multiple lines of input';
}

0 comments on commit 2d3fa13

Please sign in to comment.