Assertion.value

Asserts for an input range wrapped around an Assertion to contain/include a value.

struct Assertion(T)
static if(isInputRange!T || isArray!T || isAssociativeArray!T)
alias value = include

Examples

[1, 2, 3, 4].should.include(3);
"something".should.not.include('o');
"something".should.include("th");

Meta