-
-
Notifications
You must be signed in to change notification settings - Fork 385
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: weighter->weigher, numbers vs strings, weights with units #8056
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## main #8056 +/- ##
==========================================
+ Coverage 44.68% 44.70% +0.01%
==========================================
Files 99 100 +1
Lines 20196 20212 +16
Branches 4636 4636
==========================================
+ Hits 9025 9035 +10
- Misses 10097 10103 +6
Partials 1074 1074
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
# We make a copy of numeric values so that Perl does not turn the value to a string when we concatenate it in the signature | ||
my $number_of_units = $packagings_ref->{number_of_units}; | ||
my $weight_measured = $packagings_ref->{weight_measured}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool !
This PR fixes 3 issues related to packaging weights:
Some functions were moved out from Food.pm to a new Units.pm in order to use them in Packaging.pm