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

Test for 130998 #253

Merged
merged 2 commits into from Mar 15, 2017
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion S13-overloading/metaoperators.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 11;
plan 12;

#L<S06/Operator overloading>

Expand Down Expand Up @@ -42,4 +42,9 @@ is ~(('OMG','BBQ') <<wtf>> ('BBQ','OMG')), 'OMGWTFBBQ BBQWTFOMG', '<<...>> hyper
is (2 [&foo] 3 [&foo] 4), 24, "can we use a sub as an infix op between []";
}

# RT #130998
{
is([+](^20 .grep: *.is-prime), 77, "can we use &infix:<.> as argument for []");
}

# vim: ft=perl6
2 changes: 1 addition & 1 deletion integration/weird-errors.t
Expand Up @@ -245,5 +245,5 @@ subtest 'using a null string to access a hash does not segfault' => {
}

# RT #128985
is (^1000 .grep: -> $n {([+] ^$n .grep: -> $m {$m and $n %% $m}) == $n }), (0,),
is (^1000 .grep: -> $n {([+] ^$n .grep: -> $m {$m and $n %% $m}) == $n }), (0, 6, 28, 496),
'No SEGV/crash on reduction in grep using %%';