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

feat: make Percentage only positive #1572

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

Gounlaf
Copy link
Sponsor Contributor

@Gounlaf Gounlaf commented Mar 1, 2024

👋

As discussed #1568 (comment), this PR make Percentage positive only (including zero).

Therefore:

  • all guards checking if percentage value is negative has been removed
  • all tests where Percentage was initialized with negative value has been removed

Regards.

@Gounlaf Gounlaf changed the title feat: make Percentage always positive feat: make Percentage only positive Mar 1, 2024
@Gounlaf Gounlaf marked this pull request as draft March 3, 2024 16:39
@Gounlaf Gounlaf marked this pull request as ready for review March 7, 2024 18:45
@dlemstra dlemstra merged commit 113ddb6 into dlemstra:main Mar 8, 2024
26 checks passed
@Gounlaf Gounlaf deleted the percentage-positive-only branch March 9, 2024 12:37
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.

None yet

2 participants