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

Order sensitive comparison should display missing rows if there are more expected rows in the table than were returned #1098

Merged
merged 3 commits into from Jul 17, 2018

Conversation

midgleyc
Copy link
Contributor

Currently, if there are fewer returned results than the table has rows, using order insensitive comparison displays the absent rows, but order sensitive comparison does not. This adds a test for the latter case and fixes the implementation.

I also cleaned up the implementation slightly, hopefully without changing the behaviour: it now calculates missing items once, instead of three times, and no longer considers "there are results but should be none" separately to "there are more results than expected", as the former is a subcase of the latter.

@SabotageAndi
Copy link
Contributor

@midgleyc thanks for the PR.
No idea why I didn't merged it yet.

@SabotageAndi SabotageAndi merged commit 71511d8 into SpecFlowOSS:master Jul 17, 2018
@SabotageAndi SabotageAndi added this to the SpecFlow 2.4 milestone Jul 17, 2018
SabotageAndi added a commit that referenced this pull request Jul 17, 2018
@midgleyc midgleyc deleted the OrderSensitiveComparison branch July 18, 2018 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants