Skip to content

add_palindrome_function#1

Open
tink012184 wants to merge 1 commit intobuwebdev:mainfrom
tink012184:add_palindrome_function
Open

add_palindrome_function#1
tink012184 wants to merge 1 commit intobuwebdev:mainfrom
tink012184:add_palindrome_function

Conversation

@tink012184
Copy link

Summary

Added a utility function to check whether a string is a palindrome. The function ignores case, spaces, and punctuation, and includes unit tests for validation.

Changes

  • Added isPalindrome function in src/palindrome.js
  • Added unit tests in test/palindrome.test.js
  • Added .gitignore to exclude node_modules
  • Updated README with setup and testing instructions

Testing

To run tests locally:

  1. npm install
  2. npm test

Test Coverage

  • Validates a simple palindrome string
  • Validates a sentence palindrome with spaces and capitalization
  • Validates a non-palindrome string

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