Skip to content

Commit

Permalink
Move tests to runtime
Browse files Browse the repository at this point in the history
As they will be failing at compile time in the near future
  • Loading branch information
lizmat committed Feb 4, 2024
1 parent 70e597a commit 8640e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S06-signature/named-parameters.t
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ dies-ok {EVAL 'mandatory()' }, "not specifying a mandatory parameter fails";
}

is(mandatory_by_trait(param => 5) , 5, "named mandatory parameter is returned");
dies-ok( { mandatory_by_trait() }, "not specifying a mandatory parameter fails");
eval-dies-ok "mandatory_by_trait()", "not specifying a mandatory parameter fails";
}


Expand Down Expand Up @@ -206,7 +206,7 @@ nok(%fellowship<dwarf>.defined, "dwarf arg was not given");
sub typed_named(Int :$x) { 1 }
is(typed_named(:x(42)), 1, 'typed named parameters work...');
is(typed_named(), 1, '...when value not supplied also...');
dies-ok({ typed_named("BBQ") }, 'and the type check is enforced');
eval-dies-ok 'typed_named("BBQ")', 'and the type check is enforced';
}

{
Expand Down

0 comments on commit 8640e3a

Please sign in to comment.