You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to compare distributions to one another, defined as comparing their fields for equality. I'm trying to understand if there is a reason why this isn't currently implemented.
Details
I think this could be added to distributions by just added the PartialEq derive macro.
Motivation
When conducting unit tests, I'd like to be able to compare a created distributions to an expected distribution to they can be considered equal. In #560, it appears this idea was discussed, but people didn't think there was a need. I personally think the unit test case is compelling.
Alternatives
I'm not aware of another way of handling the equality check, since the distribution fields are private.
The text was updated successfully, but these errors were encountered:
Summary
I'd like to be able to compare distributions to one another, defined as comparing their fields for equality. I'm trying to understand if there is a reason why this isn't currently implemented.
Details
I think this could be added to distributions by just added the PartialEq derive macro.
Motivation
When conducting unit tests, I'd like to be able to compare a created distributions to an expected distribution to they can be considered equal. In #560, it appears this idea was discussed, but people didn't think there was a need. I personally think the unit test case is compelling.
Alternatives
I'm not aware of another way of handling the equality check, since the distribution fields are private.
The text was updated successfully, but these errors were encountered: