Skip to content

🧪 [testing improvement] Add error path test for normalize_number#204

Open
adamdaphna18-design wants to merge 1 commit into
anthropics:mainfrom
adamdaphna18-design:testing-improvement-normalize-number-error-path-7447747051523887631
Open

🧪 [testing improvement] Add error path test for normalize_number#204
adamdaphna18-design wants to merge 1 commit into
anthropics:mainfrom
adamdaphna18-design:testing-improvement-normalize-number-error-path-7447747051523887631

Conversation

@adamdaphna18-design
Copy link
Copy Markdown

Added tests for normalize_number in extract_numbers.py to handle un-parseable strings by returning 0.0, as well as happy path tests for various units.

🎯 What: Missing error path test in normalize_number
📊 Coverage: Added tests for ValueError handling (invalid strings) and happy path (unit multipliers K, M, B, T)
✨ Result: Increased test coverage and reliability for number extraction utility

Added tests for `normalize_number` in `extract_numbers.py` to handle un-parseable strings by returning 0.0, as well as happy path tests for various units.

🎯 What: Missing error path test in `normalize_number`
📊 Coverage: Added tests for `ValueError` handling (invalid strings) and happy path (unit multipliers K, M, B, T)
✨ Result: Increased test coverage and reliability for number extraction utility

Co-authored-by: adamdaphna18-design <224025798+adamdaphna18-design@users.noreply.github.com>
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.

1 participant