Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for RT#123380 (REPL tests go in rakudo tree) #1806

Merged
merged 1 commit into from May 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion t/02-rakudo/repl.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/packages>;
use Test;
use Test::Helpers;

plan 42;
plan 43;

my $*REPL-SCRUBBER = -> $_ is copy {
s/^^ "You may want to `zef install Readline` or `zef install Linenoise`"
Expand Down Expand Up @@ -296,3 +296,10 @@ is-run-repl '$_**2',
and !.contains('No such method')},
:err(''),
'no complaints about .message';

# RT #123380
is-run-repl 'say "b".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/;'
~ "\n" ~ 'say "a".subst(/(.)/,{$0~$0});',
:out{.contains('bb') and .contains('aa') and not .contains('2020')},
:err(''),
「no sticky $0 values across lines」;