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

Fix #995: off by one on validity short-circuit #996

Merged
merged 5 commits into from
Mar 22, 2023
Merged

Conversation

michaelkirk
Copy link
Member

@michaelkirk michaelkirk commented Mar 15, 2023

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

FIXES #995

/cc @rjmac

let simplified = rdp::<_, _, 2>(vec.into_iter(), &1.0);
assert_eq!(simplified, vec);
let actual = rdp::<_, _, 2>(input.into_iter(), &1.0);
let expected = [coord! { x: 8.0, y: 100.0 }, coord! { x: 12.0, y: 100.0 }];
Copy link
Member Author

@michaelkirk michaelkirk Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was originally added in c61abfa, and changed (I think incorrectly) in 9d81bf4 as part of #943

This reverts to its previous behavior.

@urschrei
Copy link
Member

Good catch @michaelkirk!

@michaelkirk
Copy link
Member Author

Did you want to take a look at this too @frewsxcv?

@frewsxcv
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 22, 2023

Build succeeded:

@bors bors bot merged commit 7f6c3c9 into main Mar 22, 2023
@bors bors bot deleted the mkirk/fix-simplify branch March 22, 2023 03:40
@frewsxcv
Copy link
Member

Thoughts on pushing out a new bugfix release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change in behavior of LineString::simplify from 0.23.1 to 0.24.0
3 participants