Skip to content

Commit

Permalink
Fudge newly added tests for JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Sep 22, 2016
1 parent 5651b5e commit b9264ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions S12-methods/attribute-params.t
Expand Up @@ -42,6 +42,8 @@ throws-like 'sub optimal($.x) { }', X::Syntax::NoSelf, variable => '$.x';
throws-like 'sub optimal($!x) { }', X::Syntax::NoSelf, variable => '$!x';

# RT #129278
#?rakudo.jvm skip 'BadReferenceRuntimeException: Cannot access a native attribute as a reference attribute'
#?DOES 2
{
my class C {
has int $!i;
Expand All @@ -58,6 +60,8 @@ throws-like 'sub optimal($!x) { }', X::Syntax::NoSelf, variable => '$!x';
is $o.yi, 42, 'Can use attributive binding on a native attribute (int, positional)';
is $o.yn, 1.5e0, 'Can use attributive binding on a native attribute (num, positional)';
}
#?rakudo.jvm skip 'BadReferenceRuntimeException: Cannot access a native attribute as a reference attribute'
#?DOES 2
{
my class C {
has int $!i;
Expand Down
1 change: 1 addition & 0 deletions S32-exceptions/misc.t
Expand Up @@ -888,6 +888,7 @@ throws-like Q/my Array[Numerix] $x;/, X::Undeclared::Symbols, gist => /Numerix/;
throws-like 'for 1, 2 { my $p = {};', X::Syntax::Missing, what => 'block';

# RT #129306
#?rakudo.jvm todo 'dies with X::AdHoc -- __P6opaque__77@3dc2adf9 in sub-signature of parameter @array'
throws-like 'sub foo(@array ($first, @rest)) { say @rest }; foo <1 2 3>;',
X::TypeCheck::Binding, got => IntStr, expected => Positional;

Expand Down

0 comments on commit b9264ae

Please sign in to comment.