Skip to content

Add edge case tests for clean_string empty input#4745

Open
harshavardhanreddy06 wants to merge 1 commit intoaboutcode-org:developfrom
harshavardhanreddy06:test-add-edge-case-clean-string
Open

Add edge case tests for clean_string empty input#4745
harshavardhanreddy06 wants to merge 1 commit intoaboutcode-org:developfrom
harshavardhanreddy06:test-add-edge-case-clean-string

Conversation

@harshavardhanreddy06
Copy link

Description

Add edge case tests for clean_string() to verify behavior with empty and whitespace-only input.

These tests improve coverage without changing existing behavior.

Changes

  • Add assertions for empty string input
  • Add assertions for whitespace-only input (spaces, tabs, newlines)

Testing

  • Tests added to existing test_clean_string() method
  • Follow existing assertion style and structure
  • No functional changes introduced

- Test empty string input returns empty list
- Test whitespace-only input returns empty list
- Improves coverage of textcode.strings.clean_string function

Signed-off-by: Harsha Reddy <harshareddy@example.com>
Signed-off-by: harshavardhan konepalli <harsha098reddy@gmail.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