Skip to content

Move assert methods to their revelant classes #9

Description

@wojtask

Currently various asserting functions (e.g., assert_max_heap) are members of *util modules. Consider bounding them to the data types they aim to assert. E.g., class Heap would have methods is_max_heap, is_min_heap that would check self's structure and return boolean. Then, given an instance heap of Heap, assertions would call these methods like that: assert_that(heap.is_max_heap()).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions