You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ended up reverting this change. The old behavior is more effective at driving out implementations with fewer tests. If you explicitly expect values to be nil then there is always the be_nil matcher.
Case 1
nil should equal(nil)
Result : Succeeds, since nil has integer type
Case 2
Result : Fails, since Equal comparator
https://github.com/pivotal/cedar/blob/master/Source/Headers/Matchers/Comparators/CompareEqual.h#L9
will transform it [nil isEqual:nil]
Proposed solution
Add by-reference check for objects
OR
The text was updated successfully, but these errors were encountered: