Equality and Inequality Assertions

Check whether two values are equal or unequal.

Topics

Testing for Equality Within a Given Accuracy

func XCTAssertNotEqualWithAccuracy<T>(() -> T, () -> T, T, () -> String, file: StaticString, line: UInt)

Asserts that two values are not equal within a certain accuracy.

Deprecated

See Also

Test Assertions

Boolean Assertions

Test a condition that generates a true or false result.

Nil and Non-nil Assertions

Check whether a test condition is nil or non-nil.

Comparable Value Assertions

Compare two values to determine whether one is larger or smaller than the other.

Error Assertions

Check whether a function call throws (or does not throw) an error.

Failing Unconditionally

Generate a failure immediately and unconditionally.