Skip to content

Fix word count edge cases and all error codes - #62

Merged
codepiyusss merged 2 commits into
codepiyusss:mainfrom
MOHAMMED-FAIZAN-KHAN:main
Oct 23, 2026
Merged

codepiyusss merged 2 commits into
codepiyusss:mainfrom
MOHAMMED-FAIZAN-KHAN:main

Conversation

@MOHAMMED-FAIZAN-KHAN

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes word-count behavior for empty and whitespace-only input, which now returns 0. It also fixes line counting so a trailing newline does not add a phantom line.

Removes the xfail marker from the case-insensitive palindrome test so it runs as a regular test.

Related issue

Closes #

Checklist

  • I commented on the issue first and was assigned
  • I removed the xfail marker (if fixing a bug)
  • I added or updated tests
  • pytest passes locally (33 passed)
  • This PR only addresses one issue

MOHAMMED-FAIZAN-KHAN and others added 2 commits October 23, 2026 09:50
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codepiyusss
codepiyusss merged commit 7d81b8b into codepiyusss:main Oct 23, 2026
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