diff --git a/.github/assert-no-difference.png b/.github/assert-no-difference.png new file mode 100644 index 0000000..e4658e6 Binary files /dev/null and b/.github/assert-no-difference.png differ diff --git a/.github/expect.png b/.github/expect.png new file mode 100644 index 0000000..4886351 Binary files /dev/null and b/.github/expect.png differ diff --git a/README.md b/README.md index 7ee4f02..f3bc6c7 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,25 @@ For a real world use case we modified Apple's [Landmarks](https://developer.appl ### `expectNoDifference` + + + + + + + + + +
expectNoDifference#expect
+ +![](.github/assert-no-difference.png) + + + +![](.github/expect.png) + +
+ XCTest's `XCTAssertEqual` and Swift Testing's `#expect(_ == _)` both allow you to assert that two values are equal, and if they are not the test suite will fail with a message: ```swift