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

Added a Feature of Ignoring some number tokens #74

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dhananjaypai08
Copy link
Contributor

@dhananjaypai08 dhananjaypai08 commented Jan 6, 2022

Fixes #5
Ignore parameter right now is for only the parse function(can also implement for parse_number and parse_ordinal once reviewed)
Ignoring parameters present in the ignore list and not parsing it to a number and simply adding it as it is to the output string and then keep building further. Also have added few test cases in test_number_parsing for the same. Let me know what you think and can update the Readme once its approved.

@codecov
Copy link

codecov bot commented Jan 6, 2022

Codecov Report

Merging #74 (4fd5e95) into master (8367865) will increase coverage by 0.37%.
The diff coverage is 96.15%.

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
+ Coverage   98.78%   99.15%   +0.37%     
==========================================
  Files          86       86              
  Lines         328      356      +28     
  Branches       61       69       +8     
==========================================
+ Hits          324      353      +29     
+ Misses          1        0       -1     
  Partials        3        3              
Impacted Files Coverage Δ
number_parser/parser.py 98.89% <96.15%> (+0.53%) ⬆️

@dhananjaypai08 dhananjaypai08 changed the title Added a Feature of Ignoring a number tokens Added a Feature of Ignoring some number tokens Jan 6, 2022
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.

ignore parameter
1 participant