test: verify enablement flow - #47
Conversation
SummaryAdds a new palindrome checker utility function. The ❌ The last analysis has failed. See analysis details on SonarQube Cloud What reviewers should knowWhat's being added:
For reviewers:
|
| @@ -0,0 +1,4 @@ | |||
| def is_palindrome(s: str) -> bool: | |||
| cleaned = s.lower().replace(" ", "") | |||
There was a problem hiding this comment.
The normalization strips spaces but not other non-alphanumeric characters (punctuation, tabs, hyphens, etc.). The canonical palindrome example "A man, a plan, a canal: Panama" returns False with the current implementation.
If the function is meant to handle natural-language strings, the cleaned step should strip all non-alphanumeric characters instead of just spaces.
| cleaned = s.lower().replace(" ", "") | |
| cleaned = "".join(c for c in s.lower() if c.isalnum()) |
- Mark as noise
Test PR #47 to trigger upsertInstallationId after DB restart.