Skip to content

Commit

Permalink
[JVM] Run tests for my with parens and SSA binding
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Mar 31, 2018
1 parent 9f65f34 commit 9f1fd82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions S04-declarations/my.t
Expand Up @@ -337,7 +337,6 @@ eval-lives-ok 'multi f(@a) { }; multi f(*@a) { }; f(my @a = (1, 2, 3))',

# RT #117043
# RT #126626
#?rakudo.jvm skip 'RuntimeException: java.lang.ArrayIndexOutOfBoundsException: -1'
{
my (\x1) = 1;
is x1, 1,
Expand Down Expand Up @@ -399,17 +398,13 @@ subtest 'dies on conflicting type constraints' => {
}

# RT #124210
#?rakudo.jvm skip 'ArrayIndexOutOfBoundsException: -1'
#?DOES 1
{
subtest 'can assign to sigil-less variables' => {
subtest 'can assign to sigil-less variables' => {
plan 3;
my \a = 1; is-deeply a, 1, 'simple';
my (\b, \c) = 1, 2; is-deeply (b, c), (1, 2), 'complex';
my (\d, (\e, (\f, (\g, \h)))) = 1, (2, (3, (4, 5)));
#?rakudo skip 'RT131071'
is-deeply (d, e, f, g, h), (1, 2, 3, 4, 5), 'complexerastic';
}
}

# RT #124210
Expand Down
6 changes: 1 addition & 5 deletions S12-subset/subtypes.t
Expand Up @@ -452,10 +452,7 @@ subtest '"any" Junction of types in where' => {
}
}

#?rakudo.jvm skip 'ArrayIndexOutOfBoundsException: -1'
#?DOES 1
{
subtest 'postconstraints on variables in my (...)' => {
subtest 'postconstraints on variables in my (...)' => {
plan 6;

my subset Foo where .is-prime;
Expand Down Expand Up @@ -487,7 +484,6 @@ subtest '"any" Junction of types in where' => {
'sigilless where literal';
throws-like my (\b where "x", "foo") = "x", "bar", XA, 'literal';
}
}
}

# vim: ft=perl6

0 comments on commit 9f1fd82

Please sign in to comment.