Skip to content

iterators3 IntegerOverflow test too easy #2264

@deafloo

Description

@deafloo

The test only checks for divide(i64::MIN, -1). In my solution, I just raised an IntegerOverflow Error every time the divisor was -1 and the exercise passed.
I would suggest adding more positive checks e.g. divide(10, -1), Ok(-10) and divide(i64::MIN, i64::MIN), OK(1) to close this shortcut!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions