[ library(test_util) | Reference Manual | Alphabetic Index ]
should_raise(+Goal,+Event,+TestName)
Run the goal Goal and print a message if it doesn't raise Event.
Modules
This predicate is sensitive to its module context (tool predicate, see @/2).
Examples
should_raise(number_string(hello,_),5,test_raises_5). % type error
See Also
should_give / 2, should_fail / 1, should_throw / 2, should_raise / 2, should_give / 3, should_fail / 2, should_throw / 3