any

The phrase .contain.any takes a range, at least one element of which is expected to appear in the range on the left hand side.

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

Examples

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

Meta