shouldNotBeSameSetAs

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

void
shouldNotBeSameSetAs
(
V
E
)
(
auto ref V value
,
auto ref E expected
,
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

1 auto inOrder = iota(4);
2 auto noOrder = [2, 3, 0, 1];
3 auto oops = [2, 3, 4, 5];
4 
5 inOrder.shouldNotBeSameSetAs(oops);
6 inOrder.shouldNotBeSameSetAs(noOrder).shouldThrow!UnitTestException;

Meta