[ library(test_util) | Reference Manual | Alphabetic Index ]

+Goal should_throw +Exception

Run the goal Goal and print a message if it doesn't throw Exception

Modules

This predicate is sensitive to its module context (tool predicate, see @/2).

Examples

exit_block(ball) should_throw ball.

See Also

should_give / 2, should_fail / 1, should_raise / 2, should_throw / 3, should_give / 3, should_fail / 2, should_raise / 3