Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Table#diff! not working with :surplus_row => false and interleaved surplus rows #220

Closed
L2G opened this issue Feb 1, 2012 · 7 comments
Closed

Comments

@L2G
Copy link
Contributor

L2G commented Feb 1, 2012

Original Lighthouse ticket 566

I just ran into this bug yesterday on a work project, and I was surprised/dismayed to find it appeared to be the one lone test in Cucumber marked "pending."

Since I really want this fixed, I will take my best crack at it--but I'm still a rookie with Cucumber and RSpec, so someone with more experience may be able to do it more quickly. :-)

L2G added a commit to L2G/cucumber that referenced this issue Feb 1, 2012
@L2G
Copy link
Contributor Author

L2G commented Feb 1, 2012

@hashrocket appears to have discovered this bug independently and done some work on it. (At least it looks related?)

https://github.com/hashrocket/cucumber/tree/failing-spec-for-surplus-rows

@mattwynne
Copy link
Member

What's the upshot here? Is there a fix to merge in?

@adriancb
Copy link

adriancb commented Dec 7, 2012

I've attempted a fix to this at cucumber/common#347

@os97673
Copy link
Member

os97673 commented Feb 24, 2013

It turns out that the cause of the problem was incorrect behavior of Cell class.
Namely it overrode == but didn't override hash() and this made it unusable with hashes.
Thus I've implemented hash(), eql?, and equal? and everything work ok (at least with the test provided)

@mattwynne
Copy link
Member

Nice work Oleg!

@os97673
Copy link
Member

os97673 commented Feb 24, 2013

Fortunately equal+hash is common problem for any language :)
But I do not like that now all Cells have the same hash code, though it is exactly what we have to have.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants