Skip to content

Commit

Permalink
[v6.d REVIEW] Polish .:: tests
Browse files Browse the repository at this point in the history
Orig: 5d970e144
  • Loading branch information
zoffixznet committed Sep 27, 2018
1 parent bb5fb2a commit 3b8be15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions S12-methods/qualified.t
Expand Up @@ -34,12 +34,10 @@ is( $child.myself, $child, 'Qualified method calls should use the original self'
my $consumer = Consumer.new;
is( $consumer.myself, $consumer, 'Qualified method calls should use the original self' );

is (-42).::Int::abs, 42, 'qualified method call with starting colons';
is-deeply (-42).::Int::abs, 42, 'qualified method call with starting colons';
throws-like { (42).::Str::abs }, X::Method::InvalidQualifier, 'InvalidQualifier thrown with starting colons';

# RT #130181
{
throws-like { EVAL '.::' }, X::Syntax::Malformed, 'empty name in qualified method call';
}
throws-like '.::', X::Syntax::Malformed, 'empty name in qualified method call';

# vim: ft=perl6

0 comments on commit 3b8be15

Please sign in to comment.