Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X::Method::NotFound unfudges for JVM.
  • Loading branch information
jnthn committed Sep 25, 2013
1 parent f0d78db commit bf4c89e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions S32-exceptions/misc.t
Expand Up @@ -231,7 +231,6 @@ throws_like '"a".match(:x([1, 2, 3]), /a/).Str', X::Str::Match::x, got => Array;
throws_like '"a".trans([Any.new] => [Any.new])', X::Str::Trans::IllegalKey, key => Any;
throws_like '"a".trans(rx/a/)', X::Str::Trans::InvalidArg, got => Regex;

#?rakudo.jvm skip "wrong exception type"
throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like '1.+foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like 'my class Priv { method x { self!foo } }; Priv.x',
Expand All @@ -240,7 +239,6 @@ throws_like 'my class Priv { method x { self!foo } }; Priv.x',
typename => 'Priv',
private => { $_ === True };
# RT #77582
#?rakudo.jvm skip "wrong exception type"
throws_like 'my %h; %h.nosuchmethods', X::Method::NotFound, typename => 'Hash';

throws_like '1.List::join', X::Method::InvalidQualifier,
Expand Down Expand Up @@ -281,7 +279,6 @@ throws_like '1e0 = 3', X::Assignment::RO;
#?rakudo.jvm skip "wrong exception type"
throws_like '"a" = 3', X::Assignment::RO;

#?rakudo.jvm skip "wrong exception type"
throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like 'my class NC { }; NC.new does NC', X::Mixin::NotComposable,
:target(*.defined), :rolish(*.^name eq 'NC');
Expand Down Expand Up @@ -408,7 +405,6 @@ throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foob
throws_like q{if 10 > 5 { say "maths works!" } else if 10 == 5 { say "identity is weird" } else { say "math is weird" }}, X::Syntax::Malformed::Elsif;
}

#?rakudo.jvm skip "wrong exception type"
{
# RT #72958
throws_like q{1/2.''()}, X::Method::NotFound, method => '', typename => 'Int';
Expand Down
1 change: 0 additions & 1 deletion integration/weird-errors.t
Expand Up @@ -42,7 +42,6 @@ lives_ok { 1.^methods>>.sort }, 'can use >>.method on result of introspection';

# RT #76946
#?niecza skip 'todo'
#?rakudo.jvm todo "nigh"
lives_ok { Any .= (); CATCH { when X::Method::NotFound {1} } }, 'Typed, non-internal exception';

# RT #90522
Expand Down

0 comments on commit bf4c89e

Please sign in to comment.