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

terrestris#503 add mm to formatLength and formatArea #875

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

DieuAnh
Copy link

@DieuAnh DieuAnh commented Dec 7, 2022

I added mm in format length and format area for the tooltip. It's needed for my work project. Please review. Thank you.

@marcjansen
Copy link
Member

Thanks for the pull request.

Could you please add a test and update API documentation? Please ping us if you need help

@DieuAnh
Copy link
Author

DieuAnh commented Dec 8, 2022

Thanks for your quick response. However, how can I add a test for this ? @marcjansen

@dnlkoch
Copy link
Member

dnlkoch commented Dec 9, 2022

Hi @DieuAnh, thanks for your contribution!

The existing tests for the formatLength() and formatArea() methods might give you a good starting point. In principle a test should assert if an input value (e.g. a line with the length of 0.1 meters) will result in the expected output value (e.g. 100 mm).

@DieuAnh
Copy link
Author

DieuAnh commented Jan 2, 2023

Hello @dnlkoch,
I updated the pr, could you please take a look ? Thanks

@dnlkoch dnlkoch merged commit 3249a86 into terrestris:master Jan 4, 2023
@dnlkoch
Copy link
Member

dnlkoch commented Jan 4, 2023

Thanks @DieuAnh!

@github-actions
Copy link

🎉 This PR is included in version 10.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants