Assertion.smallerOrEqualThan

Asserts if a value is smaller or euqal than another value. Returns the result.

struct Assertion(T)
@trusted
bool
smallerOrEqualThan
(
U
)
(,
string file = __FILE__
,
size_t line = __LINE__
)

Examples

10.should.be.smallerOrEqualThan(100);
10.should.be.smallerOrEqualThan(10);
false.should.be.smallerOrEqualThan(true);

Meta