Define CHECK_THROWS¶
Defined in File Shell.hpp
Define Documentation¶
-
CHECK_THROWS(expected, expression)¶
[source] Fail if
expressiondoes not throw an exception of typeexpected.The test fails if
expressionthrows nothing or throws an exception of a different type. Only available when exceptions are enabled (MUTINY_HAVE_EXCEPTIONS is non-zero).- Parameters:
expected – Exception type that must be thrown (not a string).
expression – Expression that should throw.