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

Misplaced rows in table diff. #347

Closed
wants to merge 1 commit into from
Closed

Conversation

adriancb
Copy link

@adriancb adriancb commented Dec 7, 2012

This pull request is centered around fixing cucumber/common#220

I recently discovered this exact problem and thought I'd give fixing it a shot...

I guess the real "issue" here is the LCS algorithm - Longest Common Sequence. Sequence, or order, being the operative word.

Once a table is out of sequence, Diff:LCS.diff will report a bunch of diffs. It's the way the diffs are handled as surplus or missing that could be an issue here...

The attempt with this patch is to post-process these diffs and try to remove any complementary rows (identical row marked as added and missing)

I think there could be complications/issues in reporting the diffs - but all the specs pass... Could someone take a quick look at the two lines commented out? If I leave them in, I get failure in the complex diff spec.

…nd finding corresponding added rows - then cancelling them out.
@os97673
Copy link
Member

os97673 commented Feb 24, 2013

SHA: 8fd7b1d fixed the probem, see #220 for more details.

@os97673 os97673 closed this Feb 24, 2013
@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

Successfully merging this pull request may close these issues.

3 participants