We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df8bc7d commit da90378Copy full SHA for da90378
1 file changed
src/main/java/org/variantsync/diffdetective/variation/tree/VariationNode.java
@@ -537,6 +537,12 @@ public void assertConsistency() {
537
"The root has to have the feature mapping 'true'");
538
}
539
540
+ // check that there is at most one ELIF/ELSE
541
+ Assert.assertTrue(
542
+ getChildren().stream().filter(c -> c.isElif() || c.isElse()).count() <= 1,
543
+ "There is more than one ELIF/ELSE node."
544
+ );
545
+
546
// check consistency of children lists and edges
547
for (var child : getChildren()) {
548
Assert.assertTrue(
0 commit comments