Skip to content

Add assertions to code for testing invariants. #26

@jorisdral

Description

@jorisdral

Originally suggested in #19 (comment).

We should add assertions for testing invariants (like positivity and normality) to the code in diff-containers. We can then enable these assertions in the test suite, which then warn us if definitions are breaking these invariants. Production code should disable these assertions, because they are probably expensive to compute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    diff-containersIssue or pull request for the diff-containers packageenhancementNew feature or requesttechnical debttestingImprovements or additions to tests

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions