Skip to content

Commit

Permalink
Fix exception and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Nov 25, 2014
1 parent aad8694 commit 06a85e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S03-operators/arith.t
Expand Up @@ -319,8 +319,8 @@ All uses of a zero modulus or divisor should 'die', and the
message => 'Divide by zero',
'Division by zero with infix:<div> dies and is catchable with VRef variables';

throws_like { say 0 / 0 }, X::TypeCheck::Assignment,
message => q[Type check failed in assignment to '$numerator'; expected 'Int' but got 'Failure'],
throws_like { say 0 / 0 }, X::TypeCheck::Binding,
message => q[Type check failed in binding; expected 'Int' but got 'Failure'],
'Division by zero with infix:</> dies and is catchable (1)';
throws_like { say 3 / 0 }, X::TypeCheck::Return,
message => q[Type check failed for return value; expected 'Int' but got 'Failure'],
Expand Down

0 comments on commit 06a85e4

Please sign in to comment.