Skip to content

Resolved conversion bugs and updated tests#2046

Merged
mfedderly merged 2 commits intoTurfjs:masterfrom
OpalSoft07:resolve_conversion_bugs
Mar 12, 2021
Merged

Resolved conversion bugs and updated tests#2046
mfedderly merged 2 commits intoTurfjs:masterfrom
OpalSoft07:resolve_conversion_bugs

Conversation

@anotherhale
Copy link
Copy Markdown
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.


test("convertLength", (t) => {
t.equal(convertLength(1000, "meters"), 1);
t.equal(convertLength(1000, "meters", "kilometers"), 1);
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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