Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.8k stars 601 forks source link

Fix regression where named tuples could not be compared with unnamed tuples of the same types using the == operator #1017

Closed younata closed 1 year ago

younata commented 1 year ago

Fixes #1014

This is something that broke when we made Expectation a protocol. Apparently, there's something in swift's type system that just does not work with this? I'm not going to search through the swift bug list for it, though.

So, the solution is to implement == with tuples for both SyncExpectation and AsyncExpectation.