Macro

XCTAssert

Asserts that an expression is true.

Declaration

#define XCTAssert(expression, ...)

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.

See Also

Testing if a Condition is True

XCTAssertTrue

Asserts that an expression is true.