phobos-next v0.4.6 (2022-11-25T12:27:21Z)
Home
Dub
Repo
assertThrows
nxt
assert_ex
@
trusted
bool
assertThrows
(
T
:
Throwable
=
Exception
E
)
(
lazy
E
expression
,
string
msg
=
T.stringof
,
string
file
= __FILE__
,
int
line
= __LINE__
)
Return Value
Type:
bool
true if the expression throws.
Meta
Source
See Implementation
nxt
assert_ex
aliases
assertE
assertLT
assertLTE
assertNE
assertT
functions
assertEqual
assertLessThan
assertLessThanOrEqual
assertNotEqual
assertThrows
assertTrue