Skip to content

Assert that there is at most one else in assertConsistency - #177

Merged
pmbittner merged 4 commits into
developfrom
assert-at-most-one-else
Nov 3, 2025
Merged

Assert that there is at most one else in assertConsistency#177
pmbittner merged 4 commits into
developfrom
assert-at-most-one-else

Conversation

@ibbem

Copy link
Copy Markdown
Collaborator

This was originally discussed in #174 (comment)

@pmbittnerpmbittner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. :) As a general question: Wouldn't it make sense to reuse VariationNode::assertConsistency on the projections within DIffNode::assertConsistency? Then we could reuse the ELSE/ELIF check instead of implementing it twice.

Comment threadsrc/main/java/org/variantsync/diffdetective/variation/diff/DiffNode.java Outdated
@ibbem
ibbemforce-pushed the assert-at-most-one-else branch from 1547549 to 2ea550eCompareOctober 28, 2025 08:36
@ibbem
ibbemforce-pushed the assert-at-most-one-else branch from 2ea550e to 9f43cc9CompareOctober 30, 2025 11:22
@ibbem

Copy link
Copy Markdown
CollaboratorAuthor

You are right, it does make sense to reuse the assertConsistency. I updated this PR accordingly.

@ibbem
ibbem requested a review from pmbittnerOctober 30, 2025 11:24

@pmbittnerpmbittner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you. :)

@pmbittner
pmbittner merged commit 0094462 into developNov 3, 2025
2 checks passed
@pmbittnerpmbittner mentioned this pull request Nov 3, 2025
2 tasks
@pmbittner
pmbittner deleted the assert-at-most-one-else branch November 3, 2025 09:50
Sign up for freeto 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

@ibbem@pmbittner