Macro

XCTAssertEqual

Asserts that two expressions have the same value.

Declaration

#define XCTAssertEqual(expression1, expression2, ...)

Parameters

expression1

An expression of C scalar type.

expression2

An expression of C scalar type.

...

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

Discussion

Generates a failure when expression1 != expression2.

See Also

Testing for Equality and Inequality

XCTAssertEqualObjects

Asserts that two objects are considered equal.

XCTAssertNotEqual

Asserts that two expressions do not have the same value.

XCTAssertNotEqualObjects

Asserts that two objects are not considered equal.