Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 25, 2017
1 parent 3ef43a8 commit 933ad82
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions S06-parameters/smiley.t
Expand Up @@ -8,12 +8,12 @@ is { sub a(Int $a) { $a }; a 42 }(), 42, 'can Int take an Int:D';
is { sub a(Int:_ $a) { $a }; a Int }(), Int, 'can Int:_ take an Int:U';
is { sub a(Int:_ $a) { $a }; a 42 }(), 42, 'can Int:_ take an Int:D';
is { sub a(Int:U $a) { $a }; a Int }(), Int, 'can Int:U take an Int:U';
throws-like { sub a(Int:U $a) { $a }; a 42 },
throws-like { sub a(Int:U $a) { $a }; a 42 },
Exception, 'can Int:U take an Int:D';
throws-like { sub a(Int:D $a) { $a }; a Int },
throws-like { sub a(Int:D $a) { $a }; a Int },
Exception, 'can Int:D take an Int:U';
is { sub a(Int:D $a) { $a }; a 42 }(), 42, 'can Int:D take an Int:D';
throws-like 'sub a(Int:foo $a) { $a }',
throws-like 'sub a(Int:foo $a) { $a }',
X::InvalidTypeSmiley, 'does Int:foo fail';

is { sub a(--> Int) { Int }; a }(), Int, 'can --> Int return an Int:U';
Expand All @@ -27,7 +27,7 @@ throws-like { sub a(--> Int:U) { 42 }; a },
throws-like { sub a(--> Int:D) { Int }; a },
X::TypeCheck::Return, 'can --> Int:D return an Int:U';
is { sub a(--> Int:D) { 42 }; a }(), 42, 'can --> Int:D return an Int:D';
throws-like 'sub a(--> Int:foo) { }',
throws-like 'sub a(--> Int:foo) { }',
X::InvalidTypeSmiley, 'does --> Int:foo fail';

#?rakudo skip 'use parameters is NYI until further notice'
Expand Down Expand Up @@ -64,25 +64,25 @@ throws-like 'sub a(--> Int:foo) { }',
}

#?rakudo 5 skip 'use parameters is NYI until further notice'
throws-like 'use parameters',
throws-like 'use parameters',
X::Pragma::MustOneOf,
name => "parameters",
'does use parameters fail';
throws-like 'no parameters',
throws-like 'no parameters',
X::Pragma::CannotWhat,
what => "no",
name => "parameters",
'does no parameters fail';
throws-like 'use parameters "bar"',
throws-like 'use parameters "bar"',
X::Pragma::UnknownArg,
name => "parameters",
arg => "bar",
'does use parameters "bar" fail';
throws-like 'use parameters :U, :D',
throws-like 'use parameters :U, :D',
X::Pragma::OnlyOne,
name => 'parameters',
'does use parameters :U, :D fail';
throws-like 'use parameters :foo',
throws-like 'use parameters :foo',
X::InvalidTypeSmiley,
name => 'foo',
'does use parameters :foo fail';
Expand Down

0 comments on commit 933ad82

Please sign in to comment.