Contents

XCTAssertTrue

Asserts that an expression is true.

Declaration

#define XCTAssertTrue(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 XCTAssert.

See Also

Tests for True Conditions