Commit cbf504b
committed
fix: fix
Given a `BadVDiff` with at least one node, `Show.baddiff` uses
`VariationTree.toVariationDiff` which previously required all created
nodes to have `DiffType.NON`. However, `Show.baddiff` supplies nodes
with `DiffType.ADD` and `DiffType.REM` which triggered an assert in
`DiffNode.addChild` during the `VariationTree.toVariationDiff`
construction process.Show.baddiff
1 parent 9de8a26 commit cbf504b
2 files changed
Lines changed: 26 additions & 1 deletion
File tree
- src
- main/java/org/variantsync/diffdetective/variation/diff
- test/java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments