Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for tuples of up to 6 elements to equal matcher, as with the standard library #880

Merged
merged 1 commit into from
May 9, 2021

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented May 9, 2021

https://github.com/apple/swift-evolution/blob/main/proposals/0015-tuple-comparison-operators.md

Partially implements #227.

For arrays of tuples, you can use elementsEqual instead:

expect([(1, "2"), (3, "4")]).to(elementsEqual([(1, "2"), (3, "4")], by: ==))

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants