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

Add 公克 for metric grams in chinese, see #1618 #3028

Merged
merged 3 commits into from
Mar 19, 2020

Conversation

CharlesNepote
Copy link
Member

(please test before)
Related issues and discussion: #1618

@CharlesNepote CharlesNepote requested a review from hangy March 13, 2020 14:40
@stephanegigandet
Copy link
Contributor

New units also need to be added to unit_to_g and g_to_unit functions in Food.pm.

"(please test before)" --> Can you add unit tests? :)

we have tests for other units in t/food.t

@CharlesNepote
Copy link
Member Author

You're right! I didn't know there is such unit test (and that's good!).

I'll also document the necessity to write tests, and tell the best practice is to write tests before coding.

@CharlesNepote
Copy link
Member Author

Unit tests added and passed :-)

@CharlesNepote CharlesNepote merged commit 2f2bc53 into master Mar 19, 2020
@hangy hangy deleted the CharlesNepote-issue-#1618 branch April 12, 2020 12:08
@teolemon teolemon added the China label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants