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

Resolved conversion bugs and updated tests #2046

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

anotherhale
Copy link
Contributor

@anotherhale anotherhale commented Feb 25, 2021

Please fill in this template.

  • [ X ] Use a meaningful title for the pull request. Include the name of the package modified.
  • [ X ] Have read How To Contribute.
  • [ X ] Run npm test at the sub modules where changes have occurred.
  • [ X ] Run npm run lint to ensure code style at the turf module level.

This resolves the Meter/Yard and Yard/Meter conversion ratios and also updates the tests to validate the conversions work appropriately.

@@ -519,10 +519,13 @@ test("round", (t) => {

test("convertLength", (t) => {
t.equal(convertLength(1000, "meters"), 1);
t.equal(convertLength(1000, "meters", "kilometers"), 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this one just for completeness

@anotherhale
Copy link
Contributor Author

@ALL This is a very easy PR to review. I don't have a ticket filed for the original conversion bug - I can open one for it if you like.

Copy link
Collaborator

@mfedderly mfedderly left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

2 participants