Closed georghinkel closed 7 years ago
@anthonyanjorin @tbuchmann
Can you plesae tell us, which postcondition assertion fails? As far as I can see from your code pasted above, the last family in your actual FamilyRegister has a father named Seymour and two sons with the same name. I just checked the expected models ("FamilyAfterBwdInsertion1-6.xmi") and none of them contains a Family Skinner with two sons. Maybe this is the reason why the test case fails?
Another "diff": Your actual model has a family with no father, while all families in the expected model have fathers.
The postcondition that fails is line 91 util.assertPostcondition("FamilyAfterBwdInsertion5", "PersonAfterBwdInsertion5");
. But yes, indeed, there is a structural difference beyond the order.
However, given that the result is correct after the postcondition in line 84, it seems my solution just picked a different family "Skinner". But ah, now I see that the one that is picked now does have a father but there is a different family that has no father currently. That explains the difference.
The following two family registers are asserted as not equal according to the test framework (I have slightly improved the formatting):
Expected
Actual
The only difference between them is the order of the family skinner that appears multiple times. I thought that the order of the families in the family register would not be of importance. Is that correct? If so, then perhaps generating these string descriptions has some bug.