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

fix(matching): Incorrect calculation of perfect node matching #58

Merged
merged 4 commits into from
Jun 15, 2024

Conversation

jpedroh
Copy link
Owner

@jpedroh jpedroh commented Jun 15, 2024

Previously, we were only running an equality check between both nodes contents. Now, we rely on the property that two nodes are equal if their matching score equals the sum of their trees' sizes. This makes the check more accurate and more aligned with the strategies we're using in the tool.

Copy link

codesandbox bot commented Jun 15, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@coveralls
Copy link

Coverage Status

coverage: 83.364% (-0.1%) from 83.467%
when pulling 096d2aa on fix-perfect-matching
into 26dbc22 on main.

@coveralls
Copy link

Coverage Status

coverage: 83.364% (-0.1%) from 83.467%
when pulling ed6832f on fix-perfect-matching
into 26dbc22 on main.

@jpedroh jpedroh enabled auto-merge (squash) June 15, 2024 19:54
@jpedroh jpedroh merged commit 39687ce into main Jun 15, 2024
7 checks passed
@jpedroh jpedroh deleted the fix-perfect-matching branch June 15, 2024 19:54
@coveralls
Copy link

Coverage Status

coverage: 83.313% (-0.2%) from 83.467%
when pulling 9dc043b on fix-perfect-matching
into 26dbc22 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants