<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTAssertNotEqualWithAccuracy",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@macro@XCTAssertNotEqualWithAccuracy"
  },
  "title" : "XCTAssertNotEqualWithAccuracy"
}
-->

# XCTAssertNotEqualWithAccuracy

Asserts that two expressions don’t have the same value within a specified accuracy.

```
#define XCTAssertNotEqualWithAccuracy(expression1, expression2, accuracy, ...)
```

## Parameters

`expression1`

An expression of C scalar type.

`expression2`

An expression of C scalar type.

`accuracy`

An expression of C scalar type describing the maximum difference between `expression1` and `expression2` for these values to be considered equal.

`…`

An optional description of the failure. A literal <doc://com.apple.documentation/documentation/Foundation/NSString>, optionally with string format specifiers.

## Discussion

Generates a failure when the difference between `expression1` and `expression2` is less than or equal to `accuracy`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)