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
assertEquals() should have an analog that asserts inequality. There's precedent with assertSame() and assertNotSame(); you should be able to likewise assert that two values are NOT equal to each other.
The text was updated successfully, but these errors were encountered:
I'd be more than happy to write some code for this, but I have a question: What's an acceptable style?
The first thing that comes to mind is copying the assertEquals() code, inverting it. But that's a ton of code. It's not difficult, it's just something to track.
The second thing - and the one that appeals most to me - is writing assertNotEquals in this mode:
assertEquals() should have an analog that asserts inequality. There's precedent with assertSame() and assertNotSame(); you should be able to likewise assert that two values are NOT equal to each other.
The text was updated successfully, but these errors were encountered: