Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range.equal give false negative #1

Closed
aldrikfr opened this issue Nov 15, 2019 · 1 comment
Closed

Range.equal give false negative #1

aldrikfr opened this issue Nov 15, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@aldrikfr
Copy link
Owner

aldrikfr commented Nov 15, 2019

sometimes a range with a modifier can be equal to a natural range

A range of value between 3 and 6 is equal to a range of value between 2 and 5 with a succ function mapped on it.

To Reproduce
Steps to reproduce the behavior:

let data_a = Range.from 3 6 in
let data_b = Range.from 2 5 |> Range.map succ in
Range.equal data_a data_b;;
- : bool = false

Expected behavior
The expected result is
- : bool = true

@aldrikfr aldrikfr self-assigned this Nov 15, 2019
@aldrikfr aldrikfr added the bug Something isn't working label Nov 15, 2019
@aldrikfr aldrikfr added this to the 0.7.1 milestone Nov 15, 2019
aldrikfr added a commit that referenced this issue Nov 21, 2019
@aldrikfr
Copy link
Owner Author

issue fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant