Contents

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

This function generates a failure when expression == false and is equivalent to XCTAssertTrue.

See Also

Tests for True Conditions