shouldNotBeSameSetAs

Verify that value and expected do not represent the same set (ordering is not important).

void
shouldNotBeSameSetAs
(
V
E
)
(,,
in string file = __FILE__
,
in size_t line = __LINE__
)
if (
isInputRange!V &&
isInputRange!E
&&
is(typeof(value.front != expected.front) == bool)
)

Throws

UnitTestException on failure.

Examples

auto inOrder = iota(4);
auto noOrder = [2, 3, 0, 1];
auto oops = [2, 3, 4, 5];

inOrder.shouldNotBeSameSetAs(oops);
inOrder.shouldNotBeSameSetAs(noOrder).shouldThrow!UnitTestException;

Meta