all

The phrase .contain.all takes a range, all elements of which are expected to appear in the range on the left hand side.

void
all
(
Should
T
)
(
Should should
,,
Fence _ = Fence()
,
string file = __FILE__
,
size_t line = __LINE__
)
if (
isInstanceOf!(ShouldType, Should)
)

Examples

[2, 3, 4].should.contain.all([3]);
[2, 3, 4].should.contain.all([4, 3]);
[2, 3, 4].should.not.contain.all([3, 4, 5]);

Meta