Skip to content

Instantly share code, notes, and snippets.

@lksoft
Created April 26, 2021 12:45
Show Gist options
  • Save lksoft/7cfe22ab8b9086d919d5321b1f7ae1d6 to your computer and use it in GitHub Desktop.
Save lksoft/7cfe22ab8b9086d919d5321b1f7ae1d6 to your computer and use it in GitHub Desktop.
Example XCTTest value diffed
((createdHTML) equal to (@"<sc-token type=\"url\" id=\"TEST-IDENTIFIER-INCORRECT\" src=\"https://smallcubed.com/MyFile.json\" description=\"My File\">URL: My File</sc-token>")) failed: ("<sc-token type="url" id="TEST-IDENTIFIER" src="https://smallcubed.com/MyFile.json" description="My File">URL: My File</sc-token>") is not equal to ("<sc-token type="url" id="TEST-IDENTIFIER-INCORRECT" src="https://smallcubed.com/MyFile.json" description="My File">URL: My File</sc-token>")
Here is an image of what that looks like in Xcode:
https://s3.us-east-1.amazonaws.com/media.littleknownsoftware.com/images/Xcode%20XCTest%20fail.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment