We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b5a4cb commit f65479fCopy full SHA for f65479f
1 file changed
src/main/java/org/variantsync/diffdetective/variation/tree/VariationNode.java
@@ -549,6 +549,12 @@ public void assertConsistency() {
549
"The root has to have the feature mapping 'true'");
550
}
551
552
+ // check that there is at most one ELIF/ELSE
553
+ Assert.assertTrue(
554
+ getChildren().stream().filter(c -> c.isElif() || c.isElse()).count() <= 1,
555
+ "There is more than one ELIF/ELSE node."
556
+ );
557
+
558
// check consistency of children lists and edges
559
for (var child : getChildren()) {
560
Assert.assertTrue(
0 commit comments