Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

test(palindrome): add test cases for single-char, numeric, and punctuation edge cases

Đang mở
#62 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@aadiitya2007 đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #65 của @aadiitya2007 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Currently, problems/palindrome/cases.txt contains only 6 basic test cases, mostly focusing on standard lowercase dictionary words.

To ensure all solution implementations across C, C++, JavaScript, and Python strictly conform to the alphanumeric filtering and case-insensitivity requirements, we should add edge case coverage for:

  1. Single characters: Boundary cases such as "a" and "Z" which are trivially palindromes (true).
  2. Numeric palindromes and non-palindromes: Numbers like "12321" (true) and "12345" (false).
  3. Strings with only symbols/punctuation: Strings like "!@#$" or "., !?" which contain no alphanumeric characters and reduce to empty strings (true).
  4. Mixed alphanumeric sequences: Inputs like "0P" (false) and "1a2b3b2a1" (true).
  5. Complex sentences with apostrophes and punctuation: Sentences like "No 'x' in Nixon" (true).

I would like to open a PR adding these cases to problems/palindrome/cases.txt and verifying that all language runners pass.

Ngôn ngữ chính
Python
Star
1
Fork
6
Merge trung bình
22 giờ 41 phút
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của techcsispit/code-corner

Tất cả issue của techcsispit/code-corner

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.