Assertion.key

Asserts for an associative array to have a key equal to other.

struct Assertion(T)
@trusted
static if(isAssociativeArray!T)
void
key
(
U
)
(,
string file = __FILE__
,
size_t line = __LINE__
)

Examples

["something": 10].should.have.key("something");

Meta