Assertion.empty

Asserts for the .length property or function value to be equal to 0.

struct Assertion(T)
@trusted
static if(hasLength!T || hasMember!(T, "string") || isSomeString!T)
bool
empty
(
string file = __FILE__
,
size_t line = __LINE__
)

Examples

[].should.be.empty;
"".should.be.empty;

Meta