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

Resolving simple bug [bug] Incorrect Pluralization in plural_s Function (Simple) #2180 #2181

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

rfcordeiro
Copy link
Contributor

Description:

This pull request addresses the bug identified in the plural_s function within the pandapower project. The issue occurs when attempting to pluralize a word based on a given number. The current implementation incorrectly returns an empty string when the number is greater than 1, indicating the plural form. The fix ensures that the function now correctly returns an empty string for numbers equal to or less than 1, and "s" for numbers greater than 1.

Changes Made:

Modified the plural_s function to correctly handle pluralization based on the input number.

Issue opened number #2180

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6380a30) 79.65% compared to head (cedb56f) 79.65%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2181   +/-   ##
========================================
  Coverage    79.65%   79.65%           
========================================
  Files          255      255           
  Lines        27795    27795           
========================================
  Hits         22139    22139           
  Misses        5656     5656           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SteffenMeinecke SteffenMeinecke merged commit f3c8d3a into e2nIEE:develop Nov 29, 2023
18 checks passed
@SteffenMeinecke
Copy link
Member

@rfcordeiro thanks for providing this fix!

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