Skip to content

Move assert methods to their revelant classes #9

@wojtask

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()).

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