8000 test: add regression test for issue #82 (or/or-join deduplication) by adityamukho · Pull Request #88 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

test: add regression test for issue #82 (or/or-join deduplication) - #88

Merged
adityamukho merged 1 commit into
mainfrom
fix/issue-82-or-dedup-test
Apr 4, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/issue-82-or-dedup-test

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Summary

Add regression tests for issue #82: or/or-join deduplication bug that was fixed in commit 4c8270d.

The bug: HashMap::iter() returns entries in non-deterministic order, causing identical bindings to produce different Vec orderings and fail to deduplicate.

The fix: sort key before inserting into BTreeSet (already present in apply_or_clauses).

Tests added

  • test_or_does_not_return_duplicate_bindings - verifies or deduplicates correctly
  • test_or_join_does_not_return_duplicate_bindings - verifies or-join deduplicates correctly

Both tests verify that an entity matching both branches appears exactly once, not twice.

@codecov
codecov Bot commented Apr 4, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.55%. Comparing base (7b0f512) to head (e58e229).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   84.59%   84.55%   -0.04%     
==========================================
  Files          25       25              
  Lines        4549     4551       +2     
==========================================
  Hits         3848     3848              
- Misses        701      703       +2     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adityamukho
adityamukho merged commit 88e7b63 into main Apr 4, 2026
15 checks passed
@adityamukho
adityamukho deleted the fix/issue-82-or-dedup-test branch April 4, 2026 04:32
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.

1 participant

0