test(palindrome): add test cases for single-char, numeric, and punctuation edge cases
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
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:
- Single characters: Boundary cases such as
"a"and"Z"which are trivially palindromes (true). - Numeric palindromes and non-palindromes: Numbers like
"12321"(true) and"12345"(false). - Strings with only symbols/punctuation: Strings like
"!@#$"or"., !?"which contain no alphanumeric characters and reduce to empty strings (true). - Mixed alphanumeric sequences: Inputs like
"0P"(false) and"1a2b3b2a1"(true). - 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.
- 主要言語
- Python
- スター
- 1
- フォーク
- 6
- 平均マージ
- 22時間 41分
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
techcsispit/code-corner のほかの issue
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution class対応中かも @tanujb03 が 13 日前に担当しました。 オープンbug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
techcsispit/code-corner#35 ·
メンテナーはふだん 1 日以内に返信
-
feat(anagram): add C solution対応中かも @aadiitya2007 が 1 日前に担当しました。 オープン
techcsispit/code-corner#68 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
feat(binary-search): add C solution対応中かも @aadiitya2007 が 1 日前に担当しました。 オープン
techcsispit/code-corner#64 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
test(anagram): add edge cases for case sensitivity, single-char, and multi-word anagrams対応中かも @aadiitya2007 が 5 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
techcsispit/code-corner#61 ·
メンテナーはふだん 1 日以内に返信
-
Failed compilations always report 0.000 seconds対応中かも @Nik-2208 が 11 日前に担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
techcsispit/code-corner#37 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
techcsispit/code-corner の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fossasia/visdom-dev#77 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws-cloudformation/cfn-lint#4890 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
volcengine/OpenViking#6521 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
AstrBotDevs/AstrBot#10720 ·
メンテナーはふだん 1 日以内に返信