AssertException otherwise
1 assertLessThan(2, 3); 2 3 auto exception = expectThrows!AssertException(assertGreaterThanOrEqual(2, 3)); 4 5 assertEquals("condition (2 >= 3) not satisfied", exception.msg);
1 assertIn("foo", ["foo": "bar"]); 2 3 auto exception = expectThrows!AssertException(assertNotIn("foo", ["foo": "bar"])); 4 5 assertEquals(`condition ("foo" !in ["foo":"bar"]) not satisfied`, exception.msg);
Asserts that the condition (lhs op rhs) is satisfied.