Closed desaikd closed 6 months ago
This PR works on fixing PartialEq for Violation and modifies flattened_violations return sorted violations which can be used for comparison.
PartialEq
Violation
flattened_violations
Adds test for violations equivalence.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #206:
Description of changes:
This PR works on fixing
PartialEq
forViolation
and modifiesflattened_violations
return sorted violations which can be used for comparison.List of changes:
PartialEq
forViolation
to defer to flattened violations for equivalence rather thenViolation
s treeflattened_violations
to return sorted vector absed on constraintflattened_violations
to not return the violation itself when there are no childrenTest:
Adds test for violations equivalence.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.