UnitTestException on failure.
1 auto inOrder = iota(4); 2 auto noOrder = [2, 3, 0, 1]; 3 auto oops = [2, 3, 4, 5]; 4 5 inOrder.shouldBeSameSetAs(noOrder); 6 inOrder.shouldBeSameSetAs(oops).shouldThrow!UnitTestException; 7 8 struct Struct 9 { 10 int i; 11 } 12 13 [Struct(1), Struct(4)].shouldBeSameSetAs([Struct(4), Struct(1)]);
Verify that t and u represent the same set (ordering is not important).