Macro

XCTAssert

Asserts that an expression is true.

Declaration

#define XCTAssert

Parameters

expression

An expression of boolean type.

...

An optional description of the failure. A literal NSString, optionally with string format specifiers.

Discussion

Generates a failure when expression == false. Equivalent to XCTAssertTrue.