mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 11:43:29 +01:00
Expanded documentation about THROWS_AS assertions
This commit is contained in:
parent
f23b6b8b85
commit
d762a7ca6c
@ -95,7 +95,7 @@ Expects that an exception (of any type) is be thrown during evaluation of the ex
|
|||||||
* **REQUIRE_THROWS_AS(** _expression_, _exception type_ **)** and
|
* **REQUIRE_THROWS_AS(** _expression_, _exception type_ **)** and
|
||||||
* **CHECK_THROWS_AS(** _expression_, _exception type_ **)**
|
* **CHECK_THROWS_AS(** _expression_, _exception type_ **)**
|
||||||
|
|
||||||
Expects that an exception of the _specified type_ is thrown during evaluation of the expression.
|
Expects that an exception of the _specified type_ is thrown during evaluation of the expression. Note that the _exception type_ is used verbatim and you should include (const) reference.
|
||||||
|
|
||||||
* **REQUIRE_THROWS_WITH(** _expression_, _string or string matcher_ **)** and
|
* **REQUIRE_THROWS_WITH(** _expression_, _string or string matcher_ **)** and
|
||||||
* **CHECK_THROWS_WITH(** _expression_, _string or string matcher_ **)**
|
* **CHECK_THROWS_WITH(** _expression_, _string or string matcher_ **)**
|
||||||
|
Loading…
Reference in New Issue
Block a user